pub struct FunctionParam {
pub name: String,
pub kind: FunctionParamType,
pub internal_type: Option<String>,
}Expand description
§FunctionParam
A generic function parameter
Fields§
§name: StringThe function parameter name
kind: FunctionParamTypeThe function parameter type
internal_type: Option<String>The internal type of the parameter
Trait Implementations§
Source§impl Clone for FunctionParam
impl Clone for FunctionParam
Source§impl Debug for FunctionParam
impl Debug for FunctionParam
Source§impl<'de> Deserialize<'de> for FunctionParam
impl<'de> Deserialize<'de> for FunctionParam
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 FunctionParam
Source§impl From<FunctionParam> for JsValuewhere
FunctionParam: Serialize,
impl From<FunctionParam> for JsValuewhere
FunctionParam: Serialize,
Source§fn from(value: FunctionParam) -> Self
fn from(value: FunctionParam) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for FunctionParamwhere
Self: DeserializeOwned,
impl FromWasmAbi for FunctionParamwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &FunctionParamwhere
FunctionParam: Serialize,
impl IntoWasmAbi for &FunctionParamwhere
FunctionParam: Serialize,
Source§impl IntoWasmAbi for FunctionParamwhere
FunctionParam: Serialize,
impl IntoWasmAbi for FunctionParamwhere
FunctionParam: Serialize,
Source§impl OptionFromWasmAbi for FunctionParamwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for FunctionParamwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for FunctionParamwhere
FunctionParam: Serialize,
impl OptionIntoWasmAbi for FunctionParamwhere
FunctionParam: Serialize,
Source§impl Ord for FunctionParam
impl Ord for FunctionParam
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 FunctionParam
impl PartialEq for FunctionParam
Source§impl PartialOrd for FunctionParam
impl PartialOrd for FunctionParam
Source§impl RefFromWasmAbi for FunctionParamwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for FunctionParamwhere
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<FunctionParam>
type Anchor = SelfOwner<FunctionParam>
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 FunctionParam
impl Serialize for FunctionParam
impl StructuralPartialEq for FunctionParam
Source§impl Tsify for FunctionParam
impl Tsify for FunctionParam
const DECL: &'static str = "/**\n * #### FunctionParam\n *\n * A generic function parameter\n */\nexport interface FunctionParam {\n /**\n * The function parameter name\n */\n name: string;\n /**\n * The function parameter type\n */\n kind: FunctionParamType;\n /**\n * The internal type of the parameter\n */\n internal_type: string | undefined;\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 FunctionParamwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for FunctionParamwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for FunctionParamwhere
FunctionParam: Serialize,
impl VectorIntoWasmAbi for FunctionParamwhere
FunctionParam: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for FunctionParam
impl WasmDescribe for FunctionParam
Source§impl WasmDescribeVector for FunctionParam
impl WasmDescribeVector for FunctionParam
Auto Trait Implementations§
impl Freeze for FunctionParam
impl RefUnwindSafe for FunctionParam
impl Send for FunctionParam
impl Sync for FunctionParam
impl Unpin for FunctionParam
impl UnsafeUnpin for FunctionParam
impl UnwindSafe for FunctionParam
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: 80 bytes