Enum reflectapi::Type
source · pub enum Type {
Primitive(Primitive),
Struct(Struct),
Enum(Enum),
}
Variants§
Implementations§
source§impl Type
impl Type
pub fn name(&self) -> &str
pub fn serde_name(&self) -> &str
pub fn description(&self) -> &str
pub fn parameters(&self) -> Iter<'_, TypeParameter>
pub fn as_struct(&self) -> Option<&Struct>
pub fn as_enum(&self) -> Option<&Enum>
pub fn as_primitive(&self) -> Option<&Primitive>
pub fn __internal_rename_current(&mut self, new_name: String)
pub fn __internal_rebind_generic_parameters( &mut self, unresolved_to_resolved_map: &HashMap<TypeReference, TypeReference>, schema: &Typespace )
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 PartialEq for Type
impl PartialEq for 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 Eq for Type
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 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