pub enum TypeName {
ArrayTypeName(Box<ArrayTypeName>),
ElementaryTypeName(ElementaryTypeName),
FunctionTypeName(FunctionTypeName),
Mapping(Mapping),
UserDefinedTypeName(UserDefinedTypeName),
}
Expand description
TypeName
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/ArrayTypeName"
},
{
"$ref": "#/definitions/ElementaryTypeName"
},
{
"$ref": "#/definitions/FunctionTypeName"
},
{
"$ref": "#/definitions/Mapping"
},
{
"$ref": "#/definitions/UserDefinedTypeName"
}
]
}
Variants§
ArrayTypeName(Box<ArrayTypeName>)
ElementaryTypeName(ElementaryTypeName)
FunctionTypeName(FunctionTypeName)
Mapping(Mapping)
UserDefinedTypeName(UserDefinedTypeName)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeName
impl<'de> Deserialize<'de> for TypeName
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
Source§impl From<Box<ArrayTypeName>> for TypeName
impl From<Box<ArrayTypeName>> for TypeName
Source§fn from(value: Box<ArrayTypeName>) -> Self
fn from(value: Box<ArrayTypeName>) -> Self
Converts to this type from the input type.
Source§impl From<ElementaryTypeName> for TypeName
impl From<ElementaryTypeName> for TypeName
Source§fn from(value: ElementaryTypeName) -> Self
fn from(value: ElementaryTypeName) -> Self
Converts to this type from the input type.
Source§impl From<FunctionTypeName> for TypeName
impl From<FunctionTypeName> for TypeName
Source§fn from(value: FunctionTypeName) -> Self
fn from(value: FunctionTypeName) -> Self
Converts to this type from the input type.
Source§impl From<UserDefinedTypeName> for TypeName
impl From<UserDefinedTypeName> for TypeName
Source§fn from(value: UserDefinedTypeName) -> Self
fn from(value: UserDefinedTypeName) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
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