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