pub enum TypeName<'a> {
Primitive(PrimitiveType),
Ref(&'a str),
}
Expand description
Either a PrimitiveType
or a reference to a previously defined named type
Variants§
Primitive(PrimitiveType)
Ref(&'a str)
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for TypeName<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TypeName<'a>
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
impl<'a> Eq for TypeName<'a>
impl<'a> StructuralPartialEq for TypeName<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeName<'a>
impl<'a> RefUnwindSafe for TypeName<'a>
impl<'a> Send for TypeName<'a>
impl<'a> Sync for TypeName<'a>
impl<'a> Unpin for TypeName<'a>
impl<'a> UnwindSafe for TypeName<'a>
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