pub struct ProtocolResponse {
pub version: u8,
pub network_name: String,
pub bech32_hrp: String,
pub min_pow_score: u32,
pub below_max_depth: u8,
pub rent_structure: RentStructureResponse,
pub token_supply: String,
}
Expand description
Returned in InfoResponse
.
Protocol information about the node.
Fields§
§version: u8
§network_name: String
§bech32_hrp: String
§min_pow_score: u32
§below_max_depth: u8
§rent_structure: RentStructureResponse
§token_supply: String
Trait Implementations§
Source§impl Clone for ProtocolResponse
impl Clone for ProtocolResponse
Source§fn clone(&self) -> ProtocolResponse
fn clone(&self) -> ProtocolResponse
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 ProtocolResponse
impl Debug for ProtocolResponse
Source§impl<'de> Deserialize<'de> for ProtocolResponse
impl<'de> Deserialize<'de> for ProtocolResponse
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 PartialEq for ProtocolResponse
impl PartialEq for ProtocolResponse
Source§impl Serialize for ProtocolResponse
impl Serialize for ProtocolResponse
Source§impl TryFrom<ProtocolResponse> for ProtocolParameters
impl TryFrom<ProtocolResponse> for ProtocolParameters
impl Eq for ProtocolResponse
impl StructuralPartialEq for ProtocolResponse
Auto Trait Implementations§
impl Freeze for ProtocolResponse
impl RefUnwindSafe for ProtocolResponse
impl Send for ProtocolResponse
impl Sync for ProtocolResponse
impl Unpin for ProtocolResponse
impl UnwindSafe for ProtocolResponse
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