pub struct AllowedSelfTradePreventionModes(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl AllowedSelfTradePreventionModes
impl AllowedSelfTradePreventionModes
pub fn new(value: u8) -> Self
pub fn clear(&mut self) -> &mut Self
pub fn get_none(&self) -> bool
pub fn set_none(&mut self, value: bool) -> &mut Self
pub fn get_expire_taker(&self) -> bool
pub fn set_expire_taker(&mut self, value: bool) -> &mut Self
pub fn get_expire_maker(&self) -> bool
pub fn set_expire_maker(&mut self, value: bool) -> &mut Self
pub fn get_expire_both(&self) -> bool
pub fn set_expire_both(&mut self, value: bool) -> &mut Self
pub fn get_decrement(&self) -> bool
pub fn set_decrement(&mut self, value: bool) -> &mut Self
pub fn get_transfer(&self) -> bool
pub fn set_transfer(&mut self, value: bool) -> &mut Self
pub fn get_non_representable(&self) -> bool
pub fn set_non_representable(&mut self, value: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for AllowedSelfTradePreventionModes
impl Clone for AllowedSelfTradePreventionModes
Source§fn clone(&self) -> AllowedSelfTradePreventionModes
fn clone(&self) -> AllowedSelfTradePreventionModes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AllowedSelfTradePreventionModes
impl Default for AllowedSelfTradePreventionModes
Source§fn default() -> AllowedSelfTradePreventionModes
fn default() -> AllowedSelfTradePreventionModes
Returns the “default value” for a type. Read more
Source§impl Ord for AllowedSelfTradePreventionModes
impl Ord for AllowedSelfTradePreventionModes
Source§fn cmp(&self, other: &AllowedSelfTradePreventionModes) -> Ordering
fn cmp(&self, other: &AllowedSelfTradePreventionModes) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for AllowedSelfTradePreventionModes
impl PartialEq for AllowedSelfTradePreventionModes
Source§fn eq(&self, other: &AllowedSelfTradePreventionModes) -> bool
fn eq(&self, other: &AllowedSelfTradePreventionModes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AllowedSelfTradePreventionModes
impl PartialOrd for AllowedSelfTradePreventionModes
impl Copy for AllowedSelfTradePreventionModes
impl Eq for AllowedSelfTradePreventionModes
impl StructuralPartialEq for AllowedSelfTradePreventionModes
Auto Trait Implementations§
impl Freeze for AllowedSelfTradePreventionModes
impl RefUnwindSafe for AllowedSelfTradePreventionModes
impl Send for AllowedSelfTradePreventionModes
impl Sync for AllowedSelfTradePreventionModes
impl Unpin for AllowedSelfTradePreventionModes
impl UnsafeUnpin for AllowedSelfTradePreventionModes
impl UnwindSafe for AllowedSelfTradePreventionModes
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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