pub enum Type {
String(String),
Object(Map<String, Value>),
}Expand description
Type
JSON schema
{
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
]
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Type, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Type, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConcreteType> for Type
Available on crate feature parse only.
impl From<ConcreteType> for Type
Available on crate feature
parse only.Source§fn from(val: ConcreteType) -> Self
fn from(val: ConcreteType) -> Self
Converts to this type from the input type.
Source§impl From<Intermediate> for Type
impl From<Intermediate> for Type
Source§fn from(value: Intermediate) -> Type
fn from(value: Intermediate) -> Type
Converts to this type from the input type.
Source§impl From<ReturnValue> for Type
impl From<ReturnValue> for Type
Source§fn from(value: ReturnValue) -> Type
fn from(value: ReturnValue) -> Type
Converts to this type from the input type.
Source§impl From<Type> for Intermediate
impl From<Type> for Intermediate
Source§fn from(value: Type) -> Intermediate
fn from(value: Type) -> Intermediate
Converts to this type from the input type.
Source§impl From<Type> for ReturnValue
impl From<Type> for ReturnValue
Source§fn from(value: Type) -> ReturnValue
fn from(value: Type) -> ReturnValue
Converts to this type from the input type.
Source§impl Serialize for Type
impl Serialize for Type
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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