pub struct SourceRecordRef { /* private fields */ }Expand description
One sealed record of another instance, addressed exactly.
CeremonyRecordRef points at a record
inside the instance that holds it, which is the only thing a reason
or an intervention ever needs. A succession has to point across
instances: the evidence a successor carries was produced somewhere
else, under another definition, and the reference is worth nothing
if it cannot say where.
The record hash is part of the reference rather than a check made beside it. A reference that named only the event would keep pointing after the predecessor’s chain was rewritten, and pointing at work that is no longer what it was is exactly the failure this exists to prevent.
Implementations§
Source§impl SourceRecordRef
impl SourceRecordRef
pub const fn new( ceremony_id: CeremonyId, step_id: StepId, event_id: EventId, record_hash: AuditRecordHash, state_visit: StateVisit, attempt: StepAttempt, ) -> Self
pub const fn ceremony_id(&self) -> &CeremonyId
pub const fn step_id(&self) -> &StepId
pub const fn event_id(&self) -> &EventId
pub const fn record_hash(&self) -> AuditRecordHash
pub const fn state_visit(&self) -> StateVisit
pub const fn attempt(&self) -> StepAttempt
Trait Implementations§
Source§impl Clone for SourceRecordRef
impl Clone for SourceRecordRef
Source§impl Debug for SourceRecordRef
impl Debug for SourceRecordRef
Source§impl<'de> Deserialize<'de> for SourceRecordRef
impl<'de> Deserialize<'de> for SourceRecordRef
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 SourceRecordRef
Source§impl PartialEq for SourceRecordRef
impl PartialEq for SourceRecordRef
Source§impl Serialize for SourceRecordRef
impl Serialize for SourceRecordRef
impl StructuralPartialEq for SourceRecordRef
Auto Trait Implementations§
impl Freeze for SourceRecordRef
impl RefUnwindSafe for SourceRecordRef
impl Send for SourceRecordRef
impl Sync for SourceRecordRef
impl Unpin for SourceRecordRef
impl UnsafeUnpin for SourceRecordRef
impl UnwindSafe for SourceRecordRef
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