pub struct Blockstamp {
pub id: BlockId,
pub hash: BlockHash,
}Expand description
Fields§
§id: BlockIdBlock Id.
hash: BlockHashBlock hash.
Implementations§
Source§impl Blockstamp
impl Blockstamp
Sourcepub fn from_string(src: &str) -> Result<Blockstamp, BlockUIdParseError>
pub fn from_string(src: &str) -> Result<Blockstamp, BlockUIdParseError>
Create a BlockUId from a text.
Trait Implementations§
Source§impl Clone for Blockstamp
impl Clone for Blockstamp
Source§fn clone(&self) -> Blockstamp
fn clone(&self) -> Blockstamp
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 Blockstamp
impl Debug for Blockstamp
Source§impl Default for Blockstamp
impl Default for Blockstamp
Source§fn default() -> Blockstamp
fn default() -> Blockstamp
Returns the “default value” for a type. Read more
Source§impl Display for Blockstamp
impl Display for Blockstamp
Source§impl Hash for Blockstamp
impl Hash for Blockstamp
Source§impl PartialEq for Blockstamp
impl PartialEq for Blockstamp
impl Copy for Blockstamp
impl Eq for Blockstamp
impl StructuralPartialEq for Blockstamp
Auto Trait Implementations§
impl Freeze for Blockstamp
impl RefUnwindSafe for Blockstamp
impl Send for Blockstamp
impl Sync for Blockstamp
impl Unpin for Blockstamp
impl UnwindSafe for Blockstamp
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