Struct account_common::AccountId
source · pub struct AccountId { /* private fields */ }
Expand description
A simpler wrapper around the less ergonomic autogenerated FIDL type.
Implementations§
source§impl AccountId
impl AccountId
sourcepub fn to_canonical_string(&self) -> String
pub fn to_canonical_string(&self) -> String
A string representing the account in a canonical way, safe for file/directory names
sourcepub fn from_canonical_str(s: &str) -> Option<Self>
pub fn from_canonical_str(s: &str) -> Option<Self>
Inverse of to_canonical_string
. Returns Some(id) if &id.to_canonical_string() == s.
Trait Implementations§
source§impl<'a> Deserialize<'a> for AccountId
impl<'a> Deserialize<'a> for AccountId
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for AccountId
impl Ord for AccountId
source§impl PartialEq<AccountId> for AccountId
impl PartialEq<AccountId> for AccountId
source§impl PartialOrd<AccountId> for AccountId
impl PartialOrd<AccountId> for AccountId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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