Enum soroban_env_guest::xdr::Memo
Variants
None
Text(StringM<28>)
Id(u64)
Hash(Hash)
Return(Hash)
Implementations
impl Memo
impl Memo
pub const VARIANTS: [MemoType; 5] = [MemoType::None, MemoType::Text, MemoType::Id, MemoType::Hash, MemoType::Return]
pub const VARIANTS_STR: [&'static str; 5] = ["None", "Text", "Id", "Hash", "Return"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> MemoType
pub const fn variants() -> [MemoType; 5]
Trait Implementations
impl Discriminant<MemoType> for Memo
impl Discriminant<MemoType> for Memo
fn discriminant(&self) -> MemoType
impl Ord for Memo
impl Ord for Memo
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<Memo> for Memo
impl PartialOrd<Memo> for Memo
impl Eq for Memo
impl ReadXdr for Memo
impl StructuralEq for Memo
impl StructuralPartialEq for Memo
impl Union<MemoType> for Memo
impl WriteXdr for Memo
Auto Trait Implementations
impl RefUnwindSafe for Memo
impl Send for Memo
impl Sync for Memo
impl Unpin for Memo
impl UnwindSafe for Memo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more