pub struct LedgerEntry {
pub schema_version: String,
pub entry_id: LedgerEntryId,
pub case_id: VerificationCaseId,
pub sequence_no: u64,
pub recorded_at: String,
pub event: LedgerEvent,
}Expand description
A sequenced, timestamped entry in the verification case ledger.
Fields§
§schema_version: String§entry_id: LedgerEntryId§case_id: VerificationCaseId§sequence_no: u64§recorded_at: String§event: LedgerEventImplementations§
Source§impl LedgerEntry
impl LedgerEntry
Sourcepub fn new(
case_id: VerificationCaseId,
sequence_no: u64,
event: LedgerEvent,
) -> Self
pub fn new( case_id: VerificationCaseId, sequence_no: u64, event: LedgerEvent, ) -> Self
Appends a timestamped ledger event for a single verification case.
Trait Implementations§
Source§impl Clone for LedgerEntry
impl Clone for LedgerEntry
Source§fn clone(&self) -> LedgerEntry
fn clone(&self) -> LedgerEntry
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 LedgerEntry
impl Debug for LedgerEntry
Source§impl<'de> Deserialize<'de> for LedgerEntry
impl<'de> Deserialize<'de> for LedgerEntry
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 LedgerEntry
Source§impl JsonSchema for LedgerEntry
impl JsonSchema for LedgerEntry
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LedgerEntry
impl PartialEq for LedgerEntry
Source§fn eq(&self, other: &LedgerEntry) -> bool
fn eq(&self, other: &LedgerEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LedgerEntry
impl Serialize for LedgerEntry
impl StructuralPartialEq for LedgerEntry
Auto Trait Implementations§
impl Freeze for LedgerEntry
impl RefUnwindSafe for LedgerEntry
impl Send for LedgerEntry
impl Sync for LedgerEntry
impl Unpin for LedgerEntry
impl UnsafeUnpin for LedgerEntry
impl UnwindSafe for LedgerEntry
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