#[repr(i32)]pub enum MemoType {
None = 0,
Text = 1,
Id = 2,
Hash = 3,
Return = 4,
}Expand description
MemoType is an XDR Enum defines as:
enum MemoType
{
MEMO_NONE = 0,
MEMO_TEXT = 1,
MEMO_ID = 2,
MEMO_HASH = 3,
MEMO_RETURN = 4
};Variants§
Implementations§
Trait Implementations§
Source§impl Discriminant<MemoType> for Memo
impl Discriminant<MemoType> for Memo
fn discriminant(&self) -> MemoType
Source§impl Ord for MemoType
impl Ord for MemoType
Source§impl PartialOrd for MemoType
impl PartialOrd for MemoType
Source§impl ReadXdr for MemoType
impl ReadXdr for MemoType
Source§fn read_xdr<R>(r: &mut Limited<R>) -> Result<MemoType, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<MemoType, Error>where
R: Read,
Read the XDR and construct the type. Read more
Source§fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
Source§fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR and construct the type. Read more
Source§fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
Source§fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
impl Copy for MemoType
impl Enum for MemoType
impl Eq for MemoType
impl StructuralPartialEq for MemoType
impl Union<MemoType> for Memo
Auto Trait Implementations§
impl Freeze for MemoType
impl RefUnwindSafe for MemoType
impl Send for MemoType
impl Sync for MemoType
impl Unpin for MemoType
impl UnwindSafe for MemoType
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