pub struct ChainTips {
pub height: i64,
pub hash: String,
pub branch_length: i64,
pub status: ChainTipsStatus,
}
Expand description
An individual list item from the result of JSON-RPC method getchaintips
.
Fields§
§height: i64
Height of the chain tip.
hash: String
Block hash of the tip.
branch_length: i64
Zero for main chain.
status: ChainTipsStatus
“active” for the main chain.
Implementations§
Source§impl ChainTips
impl ChainTips
Sourcepub fn into_model(self) -> Result<ChainTips, ChainTipsError>
pub fn into_model(self) -> Result<ChainTips, ChainTipsError>
Converts version specific type to a version nonspecific, more strongly typed type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChainTips
impl<'de> Deserialize<'de> for ChainTips
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
impl Eq for ChainTips
impl StructuralPartialEq for ChainTips
Auto Trait Implementations§
impl Freeze for ChainTips
impl RefUnwindSafe for ChainTips
impl Send for ChainTips
impl Sync for ChainTips
impl Unpin for ChainTips
impl UnwindSafe for ChainTips
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