pub enum Memo {
Empty,
Text(TextMemo),
Future(MemoBytes),
Arbitrary(Box<[u8; 511]>),
}
Expand description
An unencrypted memo received alongside a shielded note in a Zcash transaction.
Variants§
Empty
An empty memo field.
Text(TextMemo)
A memo field containing a UTF-8 string.
Future(MemoBytes)
Some unknown memo format from ✨the future✨ that we can’t parse.
Arbitrary(Box<[u8; 511]>)
A memo field containing arbitrary bytes.
Implementations§
Trait Implementations§
Source§impl TryFrom<&MemoBytes> for Memo
impl TryFrom<&MemoBytes> for Memo
Source§impl TryFrom<MemoBytes> for Memo
impl TryFrom<MemoBytes> for Memo
Auto Trait Implementations§
impl Freeze for Memo
impl RefUnwindSafe for Memo
impl Send for Memo
impl Sync for Memo
impl Unpin for Memo
impl UnwindSafe for Memo
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