pub enum MapAddress {
Unseq {
name: XorName,
tag: u64,
},
Seq {
name: XorName,
tag: u64,
},
}Expand description
Address of an Map.
Variants§
Implementations§
Source§impl Address
impl Address
Sourcepub fn from_kind(kind: Kind, name: XorName, tag: u64) -> Self
pub fn from_kind(kind: Kind, name: XorName, tag: u64) -> Self
Constructs an Address given kind, name, and tag.
Sourcepub fn encode_to_zbase32(&self) -> Result<String>
pub fn encode_to_zbase32(&self) -> Result<String>
Returns the Address serialised and encoded in z-base-32.
Sourcepub fn decode_from_zbase32<T: AsRef<str>>(encoded: T) -> Result<Self>
pub fn decode_from_zbase32<T: AsRef<str>>(encoded: T) -> Result<Self>
Creates from z-base-32 encoded string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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 Ord for Address
impl Ord for Address
Source§impl PartialOrd for Address
impl PartialOrd for Address
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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