pub struct Checkpoint { /* private fields */ }Expand description
Checkpoint statement for committed graph, state, or settlement evidence.
Implementations§
Source§impl Checkpoint
impl Checkpoint
Sourcepub const fn new(
statement_id: StatementId,
checkpoint_id: CheckpointId,
subject: SubjectId,
) -> Self
pub const fn new( statement_id: StatementId, checkpoint_id: CheckpointId, subject: SubjectId, ) -> Self
Creates a checkpoint body from required fields.
Sourcepub const fn kind(&self) -> StatementKind
pub const fn kind(&self) -> StatementKind
Returns this body kind.
Sourcepub const fn statement_id(&self) -> &StatementId
pub const fn statement_id(&self) -> &StatementId
Returns the checkpoint statement identifier.
Sourcepub const fn checkpoint_id(&self) -> &CheckpointId
pub const fn checkpoint_id(&self) -> &CheckpointId
Returns the checkpoint identifier.
Trait Implementations§
Source§impl Debug for Checkpoint
impl Debug for Checkpoint
impl Eq for Checkpoint
Source§impl PartialEq for Checkpoint
impl PartialEq for Checkpoint
Source§fn eq(&self, other: &Checkpoint) -> bool
fn eq(&self, other: &Checkpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
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