pub struct TransferContext {
pub initiator: Address,
pub governance_action: Option<ActionId>,
pub transfer_type: TransferType,
pub data: Vec<u8>,
}Expand description
Transfer context for controller hooks
Fields§
§initiator: AddressTransaction initiator
governance_action: Option<ActionId>Optional governance action reference
transfer_type: TransferTypeTransfer type
data: Vec<u8>Additional data
Trait Implementations§
Source§impl Clone for TransferContext
impl Clone for TransferContext
Source§fn clone(&self) -> TransferContext
fn clone(&self) -> TransferContext
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 TransferContext
impl Debug for TransferContext
Source§impl<'de> Deserialize<'de> for TransferContext
impl<'de> Deserialize<'de> for TransferContext
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 TransferContext
impl PartialEq for TransferContext
Source§fn eq(&self, other: &TransferContext) -> bool
fn eq(&self, other: &TransferContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TransferContext
impl Serialize for TransferContext
impl Eq for TransferContext
impl StructuralPartialEq for TransferContext
Auto Trait Implementations§
impl Freeze for TransferContext
impl RefUnwindSafe for TransferContext
impl Send for TransferContext
impl Sync for TransferContext
impl Unpin for TransferContext
impl UnsafeUnpin for TransferContext
impl UnwindSafe for TransferContext
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