pub struct BlockStatusView {
pub hash: CryptoHash,
pub height: u64,
}
Expand description
Height and hash of a block
JSON schema
{
"description": "Height and hash of a block",
"type": "object",
"required": [
"hash",
"height"
],
"properties": {
"hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
Fields§
§hash: CryptoHash
§height: u64
Trait Implementations§
Source§impl Clone for BlockStatusView
impl Clone for BlockStatusView
Source§fn clone(&self) -> BlockStatusView
fn clone(&self) -> BlockStatusView
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 BlockStatusView
impl Debug for BlockStatusView
Source§impl<'de> Deserialize<'de> for BlockStatusView
impl<'de> Deserialize<'de> for BlockStatusView
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 From<&BlockStatusView> for BlockStatusView
impl From<&BlockStatusView> for BlockStatusView
Source§fn from(value: &BlockStatusView) -> Self
fn from(value: &BlockStatusView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockStatusView
impl RefUnwindSafe for BlockStatusView
impl Send for BlockStatusView
impl Sync for BlockStatusView
impl Unpin for BlockStatusView
impl UnwindSafe for BlockStatusView
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