#[non_exhaustive]pub enum CdrCondition {
Always,
ProcChance {
chance: f64,
},
WhileAuraActive {
aura_local: u8,
},
ResetWhileAura {
aura_local: u8,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CdrCondition
impl Clone for CdrCondition
Source§fn clone(&self) -> CdrCondition
fn clone(&self) -> CdrCondition
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 CdrCondition
impl Debug for CdrCondition
Source§impl<'de> Deserialize<'de> for CdrCondition
impl<'de> Deserialize<'de> for CdrCondition
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 Display for CdrCondition
impl Display for CdrCondition
Source§impl From<CdrCondition> for JsValuewhere
CdrCondition: Serialize,
impl From<CdrCondition> for JsValuewhere
CdrCondition: Serialize,
Source§fn from(value: CdrCondition) -> Self
fn from(value: CdrCondition) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
impl FromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &CdrConditionwhere
CdrCondition: Serialize,
impl IntoWasmAbi for &CdrConditionwhere
CdrCondition: Serialize,
Source§impl IntoWasmAbi for CdrConditionwhere
CdrCondition: Serialize,
impl IntoWasmAbi for CdrConditionwhere
CdrCondition: Serialize,
Source§impl OptionFromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for CdrConditionwhere
CdrCondition: Serialize,
impl OptionIntoWasmAbi for CdrConditionwhere
CdrCondition: Serialize,
Source§impl PartialEq for CdrCondition
impl PartialEq for CdrCondition
Source§impl RefFromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<CdrCondition>
type Anchor = SelfOwner<CdrCondition>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for CdrCondition
impl Serialize for CdrCondition
Source§impl Tsify for CdrCondition
impl Tsify for CdrCondition
const DECL: &'static str = "export type CdrCondition = { type: \"Always\" } | { type: \"ProcChance\"; chance: number } | { type: \"WhileAuraActive\"; aura_local: number } | { type: \"ResetWhileAura\"; aura_local: number };"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for CdrConditionwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for CdrConditionwhere
CdrCondition: Serialize,
impl VectorIntoWasmAbi for CdrConditionwhere
CdrCondition: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for CdrCondition
impl WasmDescribe for CdrCondition
Source§impl WasmDescribeVector for CdrCondition
impl WasmDescribeVector for CdrCondition
impl Copy for CdrCondition
impl StructuralPartialEq for CdrCondition
Auto Trait Implementations§
impl Freeze for CdrCondition
impl RefUnwindSafe for CdrCondition
impl Send for CdrCondition
impl Sync for CdrCondition
impl Unpin for CdrCondition
impl UnsafeUnpin for CdrCondition
impl UnwindSafe for CdrCondition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more