pub struct TypeStruct {
pub metadata: Map<String, Value>,
pub system_metadata: Option<SystemTypeMetadata>,
pub type_: Value,
}Expand description
TypeStruct
JSON schema
{
"type": "object",
"required": [
"type"
],
"properties": {
"metadata": {
"description": "Arbitrary data created by the dialect author.",
"type": "object"
},
"system_metadata": {
"$ref": "#/definitions/system_type_metadata"
},
"type": {
"const": "STRUCT"
}
},
"additionalProperties": false
}Fields§
§metadata: Map<String, Value>Arbitrary data created by the dialect author.
system_metadata: Option<SystemTypeMetadata>§type_: ValueImplementations§
Source§impl TypeStruct
impl TypeStruct
pub fn builder() -> TypeStruct
Trait Implementations§
Source§impl Clone for TypeStruct
impl Clone for TypeStruct
Source§fn clone(&self) -> TypeStruct
fn clone(&self) -> TypeStruct
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeStruct
impl Debug for TypeStruct
Source§impl<'de> Deserialize<'de> for TypeStruct
impl<'de> Deserialize<'de> for TypeStruct
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeStruct, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeStruct, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TypeStruct> for DialectSupportedTypesItem
impl From<TypeStruct> for DialectSupportedTypesItem
Source§fn from(value: TypeStruct) -> DialectSupportedTypesItem
fn from(value: TypeStruct) -> DialectSupportedTypesItem
Converts to this type from the input type.
Source§impl From<TypeStruct> for TypeStruct
impl From<TypeStruct> for TypeStruct
Source§fn from(value: TypeStruct) -> TypeStruct
fn from(value: TypeStruct) -> TypeStruct
Converts to this type from the input type.
Source§impl PartialEq for TypeStruct
impl PartialEq for TypeStruct
Source§impl Serialize for TypeStruct
impl Serialize for TypeStruct
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 TypeStruct
Source§impl TryFrom<TypeStruct> for TypeStruct
impl TryFrom<TypeStruct> for TypeStruct
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TypeStruct) -> Result<TypeStruct, ConversionError>
fn try_from(value: TypeStruct) -> Result<TypeStruct, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TypeStruct
impl RefUnwindSafe for TypeStruct
impl Send for TypeStruct
impl Sync for TypeStruct
impl Unpin for TypeStruct
impl UnsafeUnpin for TypeStruct
impl UnwindSafe for TypeStruct
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