pub struct AssetFreezeTransactionFields {
pub header: TransactionHeader,
pub asset_id: u64,
pub freeze_target: Address,
pub frozen: bool,
}Expand description
Represents an asset freeze transaction that freezes or unfreezes asset holdings.
Asset freeze transactions are used by the asset freeze account to control whether a specific account can transfer a particular asset.
Fields§
§header: TransactionHeaderCommon transaction header fields.
asset_id: u64The ID of the asset being frozen/unfrozen.
freeze_target: AddressThe target account whose asset holdings will be affected.
frozen: boolThe new freeze status.
true to freeze the asset holdings (prevent transfers),
false to unfreeze the asset holdings (allow transfers).
Trait Implementations§
Source§impl Clone for AssetFreezeTransactionFields
impl Clone for AssetFreezeTransactionFields
Source§fn clone(&self) -> AssetFreezeTransactionFields
fn clone(&self) -> AssetFreezeTransactionFields
Returns a copy 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 AssetFreezeTransactionFields
impl Debug for AssetFreezeTransactionFields
Source§impl<'de> Deserialize<'de> for AssetFreezeTransactionFields
impl<'de> Deserialize<'de> for AssetFreezeTransactionFields
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 AssetFreezeTransactionFields
impl PartialEq for AssetFreezeTransactionFields
Source§fn eq(&self, other: &AssetFreezeTransactionFields) -> bool
fn eq(&self, other: &AssetFreezeTransactionFields) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssetFreezeTransactionFields
Auto Trait Implementations§
impl Freeze for AssetFreezeTransactionFields
impl RefUnwindSafe for AssetFreezeTransactionFields
impl Send for AssetFreezeTransactionFields
impl Sync for AssetFreezeTransactionFields
impl Unpin for AssetFreezeTransactionFields
impl UnwindSafe for AssetFreezeTransactionFields
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