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§
source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
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<FunctionType> for Type
impl From<FunctionType> for Type
source§fn from(v: FunctionType) -> Self
fn from(v: FunctionType) -> Self
Converts to this type from the input type.
source§impl From<NamePathType> for Type
impl From<NamePathType> for Type
source§fn from(v: NamePathType) -> Self
fn from(v: NamePathType) -> Self
Converts to this type from the input type.
source§impl From<NonNullableType> for Type
impl From<NonNullableType> for Type
source§fn from(v: NonNullableType) -> Self
fn from(v: NonNullableType) -> Self
Converts to this type from the input type.
source§impl From<NullableType> for Type
impl From<NullableType> for Type
source§fn from(v: NullableType) -> Self
fn from(v: NullableType) -> Self
Converts to this type from the input type.
source§impl From<OptionalType> for Type
impl From<OptionalType> for Type
source§fn from(v: OptionalType) -> Self
fn from(v: OptionalType) -> Self
Converts to this type from the input type.
source§impl From<UnknownType> for Type
impl From<UnknownType> for Type
source§fn from(v: UnknownType) -> Self
fn from(v: UnknownType) -> Self
Converts to this type from the input type.
source§impl From<VariadicType> for Type
impl From<VariadicType> for Type
source§fn from(v: VariadicType) -> Self
fn from(v: VariadicType) -> Self
Converts to this type from the input type.