pub enum MetadataJsonSchema {
NoConversions,
BasicConversions,
DetailedSchema,
}Variants§
Trait Implementations§
Source§impl Clone for MetadataJsonSchema
impl Clone for MetadataJsonSchema
Source§fn clone(&self) -> MetadataJsonSchema
fn clone(&self) -> MetadataJsonSchema
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 From<MetadataJsonSchema> for JsValue
impl From<MetadataJsonSchema> for JsValue
Source§fn from(value: MetadataJsonSchema) -> JsValue
fn from(value: MetadataJsonSchema) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for MetadataJsonSchema
impl FromWasmAbi for MetadataJsonSchema
Source§impl IntoWasmAbi for MetadataJsonSchema
impl IntoWasmAbi for MetadataJsonSchema
Source§impl OptionFromWasmAbi for MetadataJsonSchema
impl OptionFromWasmAbi for MetadataJsonSchema
Source§fn is_none(val: &<MetadataJsonSchema as FromWasmAbi>::Abi) -> bool
fn is_none(val: &<MetadataJsonSchema as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for MetadataJsonSchema
impl OptionIntoWasmAbi for MetadataJsonSchema
Source§fn none() -> <MetadataJsonSchema as IntoWasmAbi>::Abi
fn none() -> <MetadataJsonSchema as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§impl PartialEq for MetadataJsonSchema
impl PartialEq for MetadataJsonSchema
Source§impl TryFromJsValue for MetadataJsonSchema
impl TryFromJsValue for MetadataJsonSchema
Source§fn try_from_js_value(
value: JsValue,
) -> Result<MetadataJsonSchema, <MetadataJsonSchema as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<MetadataJsonSchema, <MetadataJsonSchema as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for MetadataJsonSchema
impl VectorFromWasmAbi for MetadataJsonSchema
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <MetadataJsonSchema as VectorFromWasmAbi>::Abi, ) -> Box<[MetadataJsonSchema]>
Source§impl VectorIntoWasmAbi for MetadataJsonSchema
impl VectorIntoWasmAbi for MetadataJsonSchema
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[MetadataJsonSchema]>, ) -> <MetadataJsonSchema as VectorIntoWasmAbi>::Abi
impl Copy for MetadataJsonSchema
impl Eq for MetadataJsonSchema
impl StructuralPartialEq for MetadataJsonSchema
Auto Trait Implementations§
impl Freeze for MetadataJsonSchema
impl RefUnwindSafe for MetadataJsonSchema
impl Send for MetadataJsonSchema
impl Sync for MetadataJsonSchema
impl Unpin for MetadataJsonSchema
impl UnwindSafe for MetadataJsonSchema
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> 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.