pub struct SchemaMetadataRecord { /* private fields */ }Expand description
SchemaMetadataRecord
Schema metadata observed in one committed generation.
Schema metadata is diagnostic ledger history. It is validated for bounded
durable encoding, but ic-memory does not prove application schema
support or data migration correctness.
Implementations§
Source§impl SchemaMetadataRecord
impl SchemaMetadataRecord
Sourcepub const fn new(generation: u64, schema: SchemaMetadata) -> Self
pub const fn new(generation: u64, schema: SchemaMetadata) -> Self
Build a history record from checked schema metadata. Ledger integrity validation checks its generation against the history.
Sourcepub const fn generation(&self) -> u64
pub const fn generation(&self) -> u64
Return the generation that declared this schema metadata.
Sourcepub const fn schema(&self) -> &SchemaMetadata
pub const fn schema(&self) -> &SchemaMetadata
Return the schema metadata declared by that generation.
Trait Implementations§
Source§impl Clone for SchemaMetadataRecord
impl Clone for SchemaMetadataRecord
Source§impl Debug for SchemaMetadataRecord
impl Debug for SchemaMetadataRecord
Source§impl<'de> Deserialize<'de> for SchemaMetadataRecord
impl<'de> Deserialize<'de> for SchemaMetadataRecord
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 SchemaMetadataRecord
Source§impl PartialEq for SchemaMetadataRecord
impl PartialEq for SchemaMetadataRecord
Source§impl Serialize for SchemaMetadataRecord
impl Serialize for SchemaMetadataRecord
impl StructuralPartialEq for SchemaMetadataRecord
Auto Trait Implementations§
impl Freeze for SchemaMetadataRecord
impl RefUnwindSafe for SchemaMetadataRecord
impl Send for SchemaMetadataRecord
impl Sync for SchemaMetadataRecord
impl Unpin for SchemaMetadataRecord
impl UnsafeUnpin for SchemaMetadataRecord
impl UnwindSafe for SchemaMetadataRecord
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