Struct coreledger_backend::events::AssetUpdate
pub struct AssetUpdate {
pub asset_id: AssetId,
pub event_id: AssetUpdateCode,
}
Expand description
Occurs when asset is updated.
Fields§
§asset_id: AssetId
Ledger-scoped asset id
event_id: AssetUpdateCode
Type of the event
Implementations§
§impl AssetUpdate
impl AssetUpdate
pub const ASSET_CREATION_SUCCESS: u16 = 1u16
pub const ASSET_ACTIVATION_SUCCESS: u16 = 18u16
pub const ISSUE_TOKENS_SUCESSS: u16 = 3u16
pub const DESTROY_TOKENS_SUCCESS: u16 = 4u16
pub const SET_ASSETCONTROLLER_SUCCESS: u16 = 5u16
pub const SET_ASSETISSUER_SUCCESS: u16 = 6u16
pub const AMENDMENT_CREATION_SUCCESS: u16 = 102u16
pub const ASSET_CREATIONACTIVATION_SUCCESS: u16 = 2u16
pub fn new(asset_id: AssetId, event_id: AssetUpdateCode) -> Self
Trait Implementations§
§impl CandidType for AssetUpdate
impl CandidType for AssetUpdate
§impl Clone for AssetUpdate
impl Clone for AssetUpdate
§fn clone(&self) -> AssetUpdate
fn clone(&self) -> AssetUpdate
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 more§impl<'de> Deserialize<'de> for AssetUpdate
impl<'de> Deserialize<'de> for AssetUpdate
§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
§impl Serialize for AssetUpdate
impl Serialize for AssetUpdate
Auto Trait Implementations§
impl Freeze for AssetUpdate
impl RefUnwindSafe for AssetUpdate
impl Send for AssetUpdate
impl Sync for AssetUpdate
impl Unpin for AssetUpdate
impl UnwindSafe for AssetUpdate
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