pub enum SupplyUpdateCode {
NewSupplyCreated = 1,
SupplyConsumed = 2,
RemainingAmountChangedToANewValueUpdateSupplyAmount = 4,
UpdateSupplyControllerWithNonEmptyController = 5,
UpdateSupplyExpiryDate = 6,
UpdateSupplyRemoveController = 7,
SupplyTerminated = 9,
NewSupplyCreatedByUpdateSupplyExchangeRateThisIsTheNewSupply = 161,
SupplyTerminatedByUpdateSupplyExchangeRateThisIsTheOldSupply = 169,
}
Expand description
Type of the SupplyUpdate
event
Variants§
NewSupplyCreated = 1
SupplyConsumed = 2
RemainingAmountChangedToANewValueUpdateSupplyAmount = 4
UpdateSupplyControllerWithNonEmptyController = 5
UpdateSupplyExpiryDate = 6
UpdateSupplyRemoveController = 7
SupplyTerminated = 9
NewSupplyCreatedByUpdateSupplyExchangeRateThisIsTheNewSupply = 161
SupplyTerminatedByUpdateSupplyExchangeRateThisIsTheOldSupply = 169
Implementations§
Trait Implementations§
§impl CandidType for SupplyUpdateCode
impl CandidType for SupplyUpdateCode
§impl Clone for SupplyUpdateCode
impl Clone for SupplyUpdateCode
§fn clone(&self) -> SupplyUpdateCode
fn clone(&self) -> SupplyUpdateCode
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 SupplyUpdateCode
impl<'de> Deserialize<'de> for SupplyUpdateCode
§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 SupplyUpdateCode
impl Serialize for SupplyUpdateCode
impl Copy for SupplyUpdateCode
Auto Trait Implementations§
impl Freeze for SupplyUpdateCode
impl RefUnwindSafe for SupplyUpdateCode
impl Send for SupplyUpdateCode
impl Sync for SupplyUpdateCode
impl Unpin for SupplyUpdateCode
impl UnwindSafe for SupplyUpdateCode
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