pub struct BlockStatusView {
pub hash: CryptoHash,
pub height: u64,
}Expand description
BlockStatusView
JSON schema
{
"type": "object",
"required": [
"hash",
"height"
],
"properties": {
"hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}Fields§
§hash: CryptoHash§height: u64Trait 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§const fn clone_from(&mut self, source: &Self)
const 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<BlockStatusView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockStatusView, <__D as Deserializer<'de>>::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) -> BlockStatusView
fn from(value: &BlockStatusView) -> BlockStatusView
Converts to this type from the input type.
Source§impl Serialize for BlockStatusView
impl Serialize for BlockStatusView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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