pub enum Type {
All(AllType),
Unknown(UnknownType),
Nullable(NullableType),
NonNullable(NonNullableType),
Optional(OptionalType),
Function(FunctionType),
Variadic(VariadicType),
NamePath(NamePathType),
Union(UnionType),
Paren(ParenType),
}
Variants
All(AllType)
*
Unknown(UnknownType)
?
Nullable(NullableType)
NonNullable(NonNullableType)
Optional(OptionalType)
Function(FunctionType)
Variadic(VariadicType)
NamePath(NamePathType)
Union(UnionType)
Paren(ParenType)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
sourcefn 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
sourceimpl From<FunctionType> for Type
impl From<FunctionType> for Type
sourcefn from(v: FunctionType) -> Self
fn from(v: FunctionType) -> Self
Converts to this type from the input type.
sourceimpl From<NamePathType> for Type
impl From<NamePathType> for Type
sourcefn from(v: NamePathType) -> Self
fn from(v: NamePathType) -> Self
Converts to this type from the input type.
sourceimpl From<NonNullableType> for Type
impl From<NonNullableType> for Type
sourcefn from(v: NonNullableType) -> Self
fn from(v: NonNullableType) -> Self
Converts to this type from the input type.
sourceimpl From<NullableType> for Type
impl From<NullableType> for Type
sourcefn from(v: NullableType) -> Self
fn from(v: NullableType) -> Self
Converts to this type from the input type.
sourceimpl From<OptionalType> for Type
impl From<OptionalType> for Type
sourcefn from(v: OptionalType) -> Self
fn from(v: OptionalType) -> Self
Converts to this type from the input type.
sourceimpl From<UnknownType> for Type
impl From<UnknownType> for Type
sourcefn from(v: UnknownType) -> Self
fn from(v: UnknownType) -> Self
Converts to this type from the input type.
sourceimpl From<VariadicType> for Type
impl From<VariadicType> for Type
sourcefn from(v: VariadicType) -> Self
fn from(v: VariadicType) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Type
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more