pub struct InputOptions {
pub required: Option<bool>,
}Expand description
Interface for getInput options
Fields§
§required: Option<bool>Whether the input is required. If required and not present, will throw. Defaults to false.
Trait Implementations§
Source§impl From<InputOptions> for JsValue
impl From<InputOptions> for JsValue
Source§fn from(value: InputOptions) -> Self
fn from(value: InputOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for InputOptions
impl FromWasmAbi for InputOptions
Source§impl IntoWasmAbi for InputOptions
impl IntoWasmAbi for InputOptions
Source§impl LongRefFromWasmAbi for InputOptions
impl LongRefFromWasmAbi for InputOptions
Source§impl OptionFromWasmAbi for InputOptions
impl OptionFromWasmAbi for InputOptions
Source§impl OptionIntoWasmAbi for InputOptions
impl OptionIntoWasmAbi for InputOptions
Source§impl RefFromWasmAbi for InputOptions
impl RefFromWasmAbi for InputOptions
Source§type Anchor = RcRef<InputOptions>
type Anchor = RcRef<InputOptions>
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 RefMutFromWasmAbi for InputOptions
impl RefMutFromWasmAbi for InputOptions
Source§impl TryFromJsValue for InputOptions
impl TryFromJsValue for InputOptions
Source§impl VectorFromWasmAbi for InputOptions
impl VectorFromWasmAbi for InputOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[InputOptions]>
Source§impl VectorIntoWasmAbi for InputOptions
impl VectorIntoWasmAbi for InputOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[InputOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for InputOptions
impl WasmDescribeVector for InputOptions
impl SupportsConstructor for InputOptions
impl SupportsInstanceProperty for InputOptions
impl SupportsStaticProperty for InputOptions
Auto Trait Implementations§
impl Freeze for InputOptions
impl RefUnwindSafe for InputOptions
impl Send for InputOptions
impl Sync for InputOptions
impl Unpin for InputOptions
impl UnwindSafe for InputOptions
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> 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.