Struct iota_client::block::protocol::dto::ProtocolParametersDto
source · pub struct ProtocolParametersDto {
pub protocol_version: u8,
pub network_name: String,
pub bech32_hrp: String,
pub min_pow_score: u32,
pub below_max_depth: u8,
pub rent_structure: RentStructureDto,
pub token_supply: String,
}
Fields§
§protocol_version: u8
§network_name: String
§bech32_hrp: String
§min_pow_score: u32
§below_max_depth: u8
§rent_structure: RentStructureDto
§token_supply: String
Trait Implementations§
source§impl Clone for ProtocolParametersDto
impl Clone for ProtocolParametersDto
source§fn clone(&self) -> ProtocolParametersDto
fn clone(&self) -> ProtocolParametersDto
Returns a copy 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 ProtocolParametersDto
impl Debug for ProtocolParametersDto
source§impl<'de> Deserialize<'de> for ProtocolParametersDto
impl<'de> Deserialize<'de> for ProtocolParametersDto
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ProtocolParametersDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ProtocolParametersDto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ProtocolParametersDto> for ProtocolParametersDto
impl PartialEq<ProtocolParametersDto> for ProtocolParametersDto
source§fn eq(&self, other: &ProtocolParametersDto) -> bool
fn eq(&self, other: &ProtocolParametersDto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ProtocolParametersDto
impl Serialize for ProtocolParametersDto
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
source§impl TryFrom<ProtocolParametersDto> for ProtocolParameters
impl TryFrom<ProtocolParametersDto> for ProtocolParameters
source§fn try_from(
value: ProtocolParametersDto
) -> Result<ProtocolParameters, <ProtocolParameters as TryFrom<ProtocolParametersDto>>::Error>
fn try_from(
value: ProtocolParametersDto
) -> Result<ProtocolParameters, <ProtocolParameters as TryFrom<ProtocolParametersDto>>::Error>
Performs the conversion.
impl Eq for ProtocolParametersDto
impl StructuralEq for ProtocolParametersDto
impl StructuralPartialEq for ProtocolParametersDto
Auto Trait Implementations§
impl RefUnwindSafe for ProtocolParametersDto
impl Send for ProtocolParametersDto
impl Sync for ProtocolParametersDto
impl Unpin for ProtocolParametersDto
impl UnwindSafe for ProtocolParametersDto
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.