Type Alias ppppp_msg::MsgId

source ·
pub type MsgId = MsgMetadataHash;

Aliased Type§

struct MsgId(/* private fields */);

Implementations§

source§

impl MsgMetadataHash

source

pub fn from_hash(hash: Hash) -> Self

Trait Implementations§

source§

impl AsBytes<16> for MsgMetadataHash

source§

fn as_bytes(&self) -> &[u8; 16]

source§

fn to_bytes(&self) -> [u8; LENGTH]

source§

fn to_base58(&self) -> String

source§

impl Clone for MsgMetadataHash

source§

fn clone(&self) -> MsgMetadataHash

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MsgMetadataHash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for MsgMetadataHash

source§

fn deserialize<D>(deserializer: D) -> Result<MsgMetadataHash, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for MsgMetadataHash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromBytes<16> for MsgMetadataHash

§

type Error = Infallible

source§

fn from_bytes(bytes: &[u8; 16]) -> Result<Self, Self::Error>

source§

fn from_base58( base58_str: &str ) -> Result<Self, DeserializeBytesError<Self::Error>>

source§

impl FromStr for MsgMetadataHash

§

type Err = DeserializeBytesError<<MsgMetadataHash as FromBytes<16>>::Error>

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for MsgMetadataHash

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for MsgMetadataHash

source§

fn cmp(&self, other: &MsgMetadataHash) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<MsgMetadataHash> for MsgMetadataHash

source§

fn eq(&self, other: &MsgMetadataHash) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<MsgMetadataHash> for MsgMetadataHash

source§

fn partial_cmp(&self, other: &MsgMetadataHash) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for MsgMetadataHash

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<String> for MsgMetadataHash

§

type Error = DeserializeBytesError<<MsgMetadataHash as FromBytes<16>>::Error>

The type returned in the event of a conversion error.
source§

fn try_from(value: String) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for MsgMetadataHash

source§

impl Eq for MsgMetadataHash

source§

impl StructuralEq for MsgMetadataHash

source§

impl StructuralPartialEq for MsgMetadataHash