package com.peachpasswords.vault import android.os.Parcelable import kotlinx.parcelize.Parcelize import kotlinx.serialization.Serializable /** * One past password kept in [VaultEntry.passwordHistory]. A snapshot of the old * password is recorded whenever an entry's password changes, so the user can * reveal, copy, or restore a value they used before. Mirrors the browser * `PasswordHistoryItem` shape. */ @Parcelize @Serializable data class PasswordHistoryItem( /** The old password value, replaced by a newer one. */ val password: String, /** * When this password stopped being current — the `passwordChangedAt` * (or `createdAt`) it carried at the moment it was swapped out. */ val changedAt: Long, ) : Parcelable