pub enum SequenceAddress {
Public {
name: XorName,
tag: u64,
},
Private {
name: XorName,
tag: u64,
},
}Expand description
Address of a Sequence.
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 a new Address given kind, name, and tag.
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true if private.
Sourcepub fn encode_to_zbase32(&self) -> String
pub fn encode_to_zbase32(&self) -> String
Returns the Address serialised and encoded in z-base-32.
Sourcepub fn decode_from_zbase32<I: AsRef<str>>(encoded: I) -> Result<Self>
pub fn decode_from_zbase32<I: AsRef<str>>(encoded: I) -> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more