#[repr(u8)]pub enum BurnReason {
Redemption = 0,
Buyback = 1,
Cancellation = 2,
ReverseSplit = 3,
Conversion = 4,
}Expand description
Burn reason
Variants§
Redemption = 0
Redemption
Buyback = 1
Buyback
Cancellation = 2
Cancellation
ReverseSplit = 3
Reverse split
Conversion = 4
Conversion
Trait Implementations§
Source§impl Clone for BurnReason
impl Clone for BurnReason
Source§fn clone(&self) -> BurnReason
fn clone(&self) -> BurnReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BurnReason
impl Debug for BurnReason
Source§impl<'de> Deserialize<'de> for BurnReason
impl<'de> Deserialize<'de> for BurnReason
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 Hash for BurnReason
impl Hash for BurnReason
Source§impl PartialEq for BurnReason
impl PartialEq for BurnReason
Source§fn eq(&self, other: &BurnReason) -> bool
fn eq(&self, other: &BurnReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BurnReason
impl Serialize for BurnReason
impl Copy for BurnReason
impl Eq for BurnReason
impl StructuralPartialEq for BurnReason
Auto Trait Implementations§
impl Freeze for BurnReason
impl RefUnwindSafe for BurnReason
impl Send for BurnReason
impl Sync for BurnReason
impl Unpin for BurnReason
impl UnsafeUnpin for BurnReason
impl UnwindSafe for BurnReason
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