pub struct HistoryPageRefV1 {
pub format_version: u16,
pub collection_index_ref: CollectionIndexRef,
pub page: ObjectIdentity,
pub protected_roots: RootSetRef,
pub cut_ids: Vec<RootCutId>,
pub first_position: CommittedLogPositionV1,
pub last_position: CommittedLogPositionV1,
pub first_commit_time: MonotonicCommitTimeV1,
pub last_commit_time: MonotonicCommitTimeV1,
}Expand description
Bounded metastore reference to one immutable history page and its roots.
Fields§
§format_version: u16§collection_index_ref: CollectionIndexRef§page: ObjectIdentity§protected_roots: RootSetRef§cut_ids: Vec<RootCutId>§first_position: CommittedLogPositionV1§last_position: CommittedLogPositionV1§first_commit_time: MonotonicCommitTimeV1§last_commit_time: MonotonicCommitTimeV1Implementations§
Source§impl HistoryPageRefV1
impl HistoryPageRefV1
pub fn validate(&self) -> Result<(), RootHistoryContractError>
Sourcepub fn validate_page(
&self,
page: &HistoryPageV1,
) -> Result<(), RootHistoryContractError>
pub fn validate_page( &self, page: &HistoryPageV1, ) -> Result<(), RootHistoryContractError>
Verifies that recorded bounds and exact identities describe the decoded page.
Trait Implementations§
Source§impl Clone for HistoryPageRefV1
impl Clone for HistoryPageRefV1
Source§impl Debug for HistoryPageRefV1
impl Debug for HistoryPageRefV1
Source§impl<'de> Deserialize<'de> for HistoryPageRefV1
impl<'de> Deserialize<'de> for HistoryPageRefV1
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 HistoryPageRefV1
Source§impl PartialEq for HistoryPageRefV1
impl PartialEq for HistoryPageRefV1
Source§impl Serialize for HistoryPageRefV1
impl Serialize for HistoryPageRefV1
impl StructuralPartialEq for HistoryPageRefV1
Auto Trait Implementations§
impl Freeze for HistoryPageRefV1
impl RefUnwindSafe for HistoryPageRefV1
impl Send for HistoryPageRefV1
impl Sync for HistoryPageRefV1
impl Unpin for HistoryPageRefV1
impl UnsafeUnpin for HistoryPageRefV1
impl UnwindSafe for HistoryPageRefV1
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