pub enum OperationData {
Send(SendOperationData),
Receive(ReceiveOperationData),
Swap(SwapOperationData),
Mint(MintOperationData),
Melt(MeltOperationData),
}Expand description
Operation data enum
Variants§
Send(SendOperationData)
Send operation data
Receive(ReceiveOperationData)
Receive operation data
Swap(SwapOperationData)
Swap operation data
Mint(MintOperationData)
Mint operation data
Melt(MeltOperationData)
Melt operation data
Implementations§
Source§impl OperationData
impl OperationData
Sourcepub fn kind(&self) -> OperationKind
pub fn kind(&self) -> OperationKind
Get the operation kind
Trait Implementations§
Source§impl Clone for OperationData
impl Clone for OperationData
Source§fn clone(&self) -> OperationData
fn clone(&self) -> OperationData
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 Debug for OperationData
impl Debug for OperationData
Source§impl<'de> Deserialize<'de> for OperationData
impl<'de> Deserialize<'de> for OperationData
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 PartialEq for OperationData
impl PartialEq for OperationData
Source§impl Serialize for OperationData
impl Serialize for OperationData
impl Eq for OperationData
impl StructuralPartialEq for OperationData
Auto Trait Implementations§
impl Freeze for OperationData
impl RefUnwindSafe for OperationData
impl Send for OperationData
impl Sync for OperationData
impl Unpin for OperationData
impl UnsafeUnpin for OperationData
impl UnwindSafe for OperationData
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