pub struct RetiredIdentityRestore<EF, V, LF> {
pub participant_id: ParticipantId,
pub conversation_id: ConversationId,
pub retired_generation: Generation,
pub enrollment_fingerprint: EnrollmentFingerprint<EF>,
pub leave_attempt_token: LeaveAttemptToken,
pub leave_request_verifier: V,
pub leave_fingerprint: LeaveFingerprint<LF>,
pub left_transaction_order: TransactionOrder,
pub committed_result: LeaveCommittedRestore,
}Expand description
Complete raw durable tombstone fields.
Fields§
§participant_id: ParticipantIdPermanent participant identity/index.
conversation_id: ConversationIdConversation containing the tombstone.
retired_generation: GenerationPermanent retired generation.
enrollment_fingerprint: EnrollmentFingerprint<EF>Permanent enrollment-token fingerprint.
leave_attempt_token: LeaveAttemptTokenPermanent committing Leave token.
leave_request_verifier: VStored non-reversible Leave-request verifier.
leave_fingerprint: LeaveFingerprint<LF>Stored canonical Leave fingerprint.
left_transaction_order: TransactionOrderImmutable transaction-order major of the permanent Left record.
committed_result: LeaveCommittedRestoreComplete canonical committed result.
Implementations§
Source§impl<D> RetiredIdentityRestore<D, D, D>
impl<D> RetiredIdentityRestore<D, D, D>
Sourcepub fn encode_canonical<const N: usize>(&self) -> Vec<u8> ⓘwhere
D: CanonicalDigest<N>,
pub fn encode_canonical<const N: usize>(&self) -> Vec<u8> ⓘwhere
D: CanonicalDigest<N>,
Encodes one complete tombstone using the lifecycle’s canonical fields.
The enclosing history value supplies the format version and typed key.
Sourcepub fn decode_canonical<const N: usize>(
bytes: &[u8],
conversation_id: u64,
participant_id: ParticipantId,
) -> Result<Self, CapsuleDecodeError>where
D: CanonicalDigest<N>,
pub fn decode_canonical<const N: usize>(
bytes: &[u8],
conversation_id: u64,
participant_id: ParticipantId,
) -> Result<Self, CapsuleDecodeError>where
D: CanonicalDigest<N>,
Decodes one exact tombstone belonging to the requested history key.
§Errors
Returns CapsuleDecodeError for an incomplete or noncanonical field,
trailing bytes, a different conversation or participant, or a committed
Leave result that does not belong to the tombstone.
Source§impl<EF, V, LF> RetiredIdentityRestore<EF, V, LF>
impl<EF, V, LF> RetiredIdentityRestore<EF, V, LF>
Sourcepub fn restore(self) -> Result<RetiredIdentity<EF, V, LF>, StorageRestoreError>
pub fn restore(self) -> Result<RetiredIdentity<EF, V, LF>, StorageRestoreError>
Restores one complete permanent tombstone by moving its payloads.
§Errors
Returns StorageRestoreError::LeaveResult for an invalid committed
result, or StorageRestoreError::RetiredIdentity when that result
does not belong to this tombstone’s identity, generation or Leave token.