pub struct LedgerCompatibility {
pub min_ledger_schema_version: u32,
pub max_ledger_schema_version: u32,
pub physical_format_id: u32,
}Expand description
LedgerCompatibility
Supported logical and physical ledger format versions.
Fields§
§min_ledger_schema_version: u32Minimum supported ledger schema version.
max_ledger_schema_version: u32Maximum supported ledger schema version.
physical_format_id: u32Required physical encoding format identifier.
Implementations§
Source§impl LedgerCompatibility
impl LedgerCompatibility
Sourcepub const fn validate(
&self,
ledger: &AllocationLedger,
) -> Result<(), LedgerCompatibilityError>
pub const fn validate( &self, ledger: &AllocationLedger, ) -> Result<(), LedgerCompatibilityError>
Validate a decoded ledger before it is used as authoritative state.
Trait Implementations§
Source§impl Clone for LedgerCompatibility
impl Clone for LedgerCompatibility
Source§fn clone(&self) -> LedgerCompatibility
fn clone(&self) -> LedgerCompatibility
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 LedgerCompatibility
impl Debug for LedgerCompatibility
Source§impl Default for LedgerCompatibility
impl Default for LedgerCompatibility
Source§impl<'de> Deserialize<'de> for LedgerCompatibility
impl<'de> Deserialize<'de> for LedgerCompatibility
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
Source§impl PartialEq for LedgerCompatibility
impl PartialEq for LedgerCompatibility
Source§fn eq(&self, other: &LedgerCompatibility) -> bool
fn eq(&self, other: &LedgerCompatibility) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LedgerCompatibility
impl Serialize for LedgerCompatibility
impl Copy for LedgerCompatibility
impl Eq for LedgerCompatibility
impl StructuralPartialEq for LedgerCompatibility
Auto Trait Implementations§
impl Freeze for LedgerCompatibility
impl RefUnwindSafe for LedgerCompatibility
impl Send for LedgerCompatibility
impl Sync for LedgerCompatibility
impl Unpin for LedgerCompatibility
impl UnsafeUnpin for LedgerCompatibility
impl UnwindSafe for LedgerCompatibility
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