pub struct KeepsakeRecord {
pub id: KeepsakeId,
pub subject: SubjectRef,
pub relation_id: RelationId,
pub state: LifecycleState,
pub expiry: ExpiryPolicy,
pub applied_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
pub fulfilled_at: Option<DateTime<Utc>>,
pub revoked_at: Option<DateTime<Utc>>,
pub metadata: BTreeMap<String, String>,
}Expand description
Flat storage and serde boundary record for keepsakes.
Fields§
§id: KeepsakeIdStable keepsake id.
subject: SubjectRefApplication-owned subject reference.
relation_id: RelationIdRelation definition id.
state: LifecycleStateCurrent lifecycle state.
expiry: ExpiryPolicyPolicy copied at apply time for deterministic replay.
applied_at: DateTime<Utc>Timestamp when the keepsake was applied.
expires_at: Option<DateTime<Utc>>Denormalized timed expiry instant for efficient scans.
fulfilled_at: Option<DateTime<Utc>>Timestamp when a fulfillment condition was observed as satisfied.
revoked_at: Option<DateTime<Utc>>Timestamp when the keepsake was revoked.
metadata: BTreeMap<String, String>Application metadata kept opaque by Keepsake.
Trait Implementations§
Source§impl Clone for KeepsakeRecord
impl Clone for KeepsakeRecord
Source§fn clone(&self) -> KeepsakeRecord
fn clone(&self) -> KeepsakeRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeepsakeRecord
impl Debug for KeepsakeRecord
Source§impl<'de> Deserialize<'de> for KeepsakeRecord
impl<'de> Deserialize<'de> for KeepsakeRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeepsakeRecord
Source§impl From<&Keepsake> for KeepsakeRecord
impl From<&Keepsake> for KeepsakeRecord
Source§impl PartialEq for KeepsakeRecord
impl PartialEq for KeepsakeRecord
Source§fn eq(&self, other: &KeepsakeRecord) -> bool
fn eq(&self, other: &KeepsakeRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeepsakeRecord
impl Serialize for KeepsakeRecord
impl StructuralPartialEq for KeepsakeRecord
Source§impl TryFrom<KeepsakeRecord> for Keepsake
impl TryFrom<KeepsakeRecord> for Keepsake
Source§type Error = KeepsakeError
type Error = KeepsakeError
The type returned in the event of a conversion error.
Source§fn try_from(record: KeepsakeRecord) -> Result<Self>
fn try_from(record: KeepsakeRecord) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for KeepsakeRecord
impl RefUnwindSafe for KeepsakeRecord
impl Send for KeepsakeRecord
impl Sync for KeepsakeRecord
impl Unpin for KeepsakeRecord
impl UnsafeUnpin for KeepsakeRecord
impl UnwindSafe for KeepsakeRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more