pub enum SchemaInfo {
alternate {
base: SchemaInfoBase,
alternate: SchemaInfoAlternate,
},
array {
base: SchemaInfoBase,
array: SchemaInfoArray,
},
builtin {
base: SchemaInfoBase,
builtin: SchemaInfoBuiltin,
},
command {
base: SchemaInfoBase,
command: SchemaInfoCommand,
},
enum_ {
base: SchemaInfoBase,
enum_: SchemaInfoEnum,
},
event {
base: SchemaInfoBase,
event: SchemaInfoEvent,
},
object {
base: SchemaInfoBase,
object: SchemaInfoObject,
},
}
Variants§
Implementations§
Source§impl SchemaInfo
impl SchemaInfo
pub fn meta_type(&self) -> SchemaMetaType
Trait Implementations§
Source§impl Clone for SchemaInfo
impl Clone for SchemaInfo
Source§fn clone(&self) -> SchemaInfo
fn clone(&self) -> SchemaInfo
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 Debug for SchemaInfo
impl Debug for SchemaInfo
Source§impl<'de> Deserialize<'de> for SchemaInfo
impl<'de> Deserialize<'de> for SchemaInfo
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<(SchemaInfoAlternate, SchemaInfoBase)> for SchemaInfo
impl From<(SchemaInfoAlternate, SchemaInfoBase)> for SchemaInfo
Source§fn from(val: (SchemaInfoAlternate, SchemaInfoBase)) -> Self
fn from(val: (SchemaInfoAlternate, SchemaInfoBase)) -> Self
Converts to this type from the input type.
Source§impl From<(SchemaInfoArray, SchemaInfoBase)> for SchemaInfo
impl From<(SchemaInfoArray, SchemaInfoBase)> for SchemaInfo
Source§fn from(val: (SchemaInfoArray, SchemaInfoBase)) -> Self
fn from(val: (SchemaInfoArray, SchemaInfoBase)) -> Self
Converts to this type from the input type.
Source§impl From<(SchemaInfoBuiltin, SchemaInfoBase)> for SchemaInfo
impl From<(SchemaInfoBuiltin, SchemaInfoBase)> for SchemaInfo
Source§fn from(val: (SchemaInfoBuiltin, SchemaInfoBase)) -> Self
fn from(val: (SchemaInfoBuiltin, SchemaInfoBase)) -> Self
Converts to this type from the input type.
Source§impl From<(SchemaInfoCommand, SchemaInfoBase)> for SchemaInfo
impl From<(SchemaInfoCommand, SchemaInfoBase)> for SchemaInfo
Source§fn from(val: (SchemaInfoCommand, SchemaInfoBase)) -> Self
fn from(val: (SchemaInfoCommand, SchemaInfoBase)) -> Self
Converts to this type from the input type.
Source§impl From<(SchemaInfoEnum, SchemaInfoBase)> for SchemaInfo
impl From<(SchemaInfoEnum, SchemaInfoBase)> for SchemaInfo
Source§fn from(val: (SchemaInfoEnum, SchemaInfoBase)) -> Self
fn from(val: (SchemaInfoEnum, SchemaInfoBase)) -> Self
Converts to this type from the input type.
Source§impl From<(SchemaInfoEvent, SchemaInfoBase)> for SchemaInfo
impl From<(SchemaInfoEvent, SchemaInfoBase)> for SchemaInfo
Source§fn from(val: (SchemaInfoEvent, SchemaInfoBase)) -> Self
fn from(val: (SchemaInfoEvent, SchemaInfoBase)) -> Self
Converts to this type from the input type.
Source§impl From<(SchemaInfoObject, SchemaInfoBase)> for SchemaInfo
impl From<(SchemaInfoObject, SchemaInfoBase)> for SchemaInfo
Source§fn from(val: (SchemaInfoObject, SchemaInfoBase)) -> Self
fn from(val: (SchemaInfoObject, SchemaInfoBase)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaInfo
impl RefUnwindSafe for SchemaInfo
impl Send for SchemaInfo
impl Sync for SchemaInfo
impl Unpin for SchemaInfo
impl UnwindSafe for SchemaInfo
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