pub struct EventParam {
pub name: String,
pub kind: FunctionParamType,
pub indexed: bool,
}Expand description
§EventParam
Event parameters.
Fields§
§name: StringThe parameter name
kind: FunctionParamTypeThe parameter type
indexed: boolIf the parameter is indexed
Trait Implementations§
Source§impl Clone for EventParam
impl Clone for EventParam
Source§impl Debug for EventParam
impl Debug for EventParam
Source§impl<'de> Deserialize<'de> for EventParam
impl<'de> Deserialize<'de> for EventParam
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
impl Eq for EventParam
Source§impl From<EventParam> for JsValuewhere
EventParam: Serialize,
impl From<EventParam> for JsValuewhere
EventParam: Serialize,
Source§fn from(value: EventParam) -> Self
fn from(value: EventParam) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for EventParamwhere
Self: DeserializeOwned,
impl FromWasmAbi for EventParamwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &EventParamwhere
EventParam: Serialize,
impl IntoWasmAbi for &EventParamwhere
EventParam: Serialize,
Source§impl IntoWasmAbi for EventParamwhere
EventParam: Serialize,
impl IntoWasmAbi for EventParamwhere
EventParam: Serialize,
Source§impl OptionFromWasmAbi for EventParamwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for EventParamwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for EventParamwhere
EventParam: Serialize,
impl OptionIntoWasmAbi for EventParamwhere
EventParam: Serialize,
Source§impl Ord for EventParam
impl Ord for EventParam
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EventParam
impl PartialEq for EventParam
Source§impl PartialOrd for EventParam
impl PartialOrd for EventParam
Source§impl RefFromWasmAbi for EventParamwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for EventParamwhere
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<EventParam>
type Anchor = SelfOwner<EventParam>
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 EventParam
impl Serialize for EventParam
impl StructuralPartialEq for EventParam
Source§impl Tsify for EventParam
impl Tsify for EventParam
const DECL: &'static str = "/**\n * #### EventParam\n *\n * Event parameters.\n */\nexport interface EventParam {\n /**\n * The parameter name\n */\n name: string;\n /**\n * The parameter type\n */\n kind: FunctionParamType;\n /**\n * If the parameter is indexed\n */\n indexed: boolean;\n}"
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 EventParamwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for EventParamwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for EventParamwhere
EventParam: Serialize,
impl VectorIntoWasmAbi for EventParamwhere
EventParam: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for EventParam
impl WasmDescribe for EventParam
Source§impl WasmDescribeVector for EventParam
impl WasmDescribeVector for EventParam
Auto Trait Implementations§
impl Freeze for EventParam
impl RefUnwindSafe for EventParam
impl Send for EventParam
impl Sync for EventParam
impl Unpin for EventParam
impl UnsafeUnpin for EventParam
impl UnwindSafe for EventParam
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes