pub struct BlockchainLatestBlock {
pub blockhash: String,
pub last_valid_block_height: i64,
}Expand description
BlockchainLatestBlock
JSON schema
{
"type": "object",
"required": [
"blockhash",
"lastValidBlockHeight"
],
"properties": {
"blockhash": {
"description": "ENTITY.BLOCKCHAIN_LATEST_BLOCK.BLOCKHASH",
"examples": [
"123"
],
"type": "string"
},
"lastValidBlockHeight": {
"description": "ENTITY.BLOCKCHAIN_LATEST_BLOCK.LAST_VALID_BLOCK_HEIGHT",
"examples": [
123
],
"type": "integer",
"format": "int64"
}
}
}Fields§
§blockhash: StringENTITY.BLOCKCHAIN_LATEST_BLOCK.BLOCKHASH
last_valid_block_height: i64ENTITY.BLOCKCHAIN_LATEST_BLOCK.LAST_VALID_BLOCK_HEIGHT
Implementations§
Source§impl BlockchainLatestBlock
impl BlockchainLatestBlock
pub fn builder() -> BlockchainLatestBlock
Trait Implementations§
Source§impl Clone for BlockchainLatestBlock
impl Clone for BlockchainLatestBlock
Source§fn clone(&self) -> BlockchainLatestBlock
fn clone(&self) -> BlockchainLatestBlock
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 BlockchainLatestBlock
impl Debug for BlockchainLatestBlock
Source§impl<'de> Deserialize<'de> for BlockchainLatestBlock
impl<'de> Deserialize<'de> for BlockchainLatestBlock
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<&BlockchainLatestBlock> for BlockchainLatestBlock
impl From<&BlockchainLatestBlock> for BlockchainLatestBlock
Source§fn from(value: &BlockchainLatestBlock) -> Self
fn from(value: &BlockchainLatestBlock) -> Self
Converts to this type from the input type.
Source§impl From<BlockchainLatestBlock> for BlockchainLatestBlock
impl From<BlockchainLatestBlock> for BlockchainLatestBlock
Source§fn from(value: BlockchainLatestBlock) -> Self
fn from(value: BlockchainLatestBlock) -> Self
Converts to this type from the input type.
Source§impl Serialize for BlockchainLatestBlock
impl Serialize for BlockchainLatestBlock
Source§impl TryFrom<BlockchainLatestBlock> for BlockchainLatestBlock
impl TryFrom<BlockchainLatestBlock> for BlockchainLatestBlock
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BlockchainLatestBlock) -> Result<Self, ConversionError>
fn try_from(value: BlockchainLatestBlock) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BlockchainLatestBlock
impl RefUnwindSafe for BlockchainLatestBlock
impl Send for BlockchainLatestBlock
impl Sync for BlockchainLatestBlock
impl Unpin for BlockchainLatestBlock
impl UnsafeUnpin for BlockchainLatestBlock
impl UnwindSafe for BlockchainLatestBlock
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