pub struct AnchorRecord {
pub chain: String,
pub anchor_id: Vec<u8>,
pub block_height: u64,
pub commitment_hash: Hash,
pub is_finalized: bool,
pub confirmations: u64,
pub recorded_at: u64,
}Expand description
A persisted anchor record
Fields§
§chain: StringChain identifier
anchor_id: Vec<u8>Anchor identifier (chain-specific encoding)
block_height: u64Block height where the anchor was included
commitment_hash: HashCommitment hash that was anchored
is_finalized: boolWhether this anchor has been finalized
confirmations: u64Number of confirmations at time of recording
recorded_at: u64Timestamp (Unix epoch seconds)
Trait Implementations§
Source§impl Clone for AnchorRecord
impl Clone for AnchorRecord
Source§fn clone(&self) -> AnchorRecord
fn clone(&self) -> AnchorRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 AnchorRecord
impl Debug for AnchorRecord
Source§impl<'de> Deserialize<'de> for AnchorRecord
impl<'de> Deserialize<'de> for AnchorRecord
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 AnchorRecord
impl PartialEq for AnchorRecord
Source§impl Serialize for AnchorRecord
impl Serialize for AnchorRecord
impl Eq for AnchorRecord
impl StructuralPartialEq for AnchorRecord
Auto Trait Implementations§
impl Freeze for AnchorRecord
impl RefUnwindSafe for AnchorRecord
impl Send for AnchorRecord
impl Sync for AnchorRecord
impl Unpin for AnchorRecord
impl UnsafeUnpin for AnchorRecord
impl UnwindSafe for AnchorRecord
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