pub enum TypeNode {
Show 25 variants
Amount(AmountTypeNode),
Array(ArrayTypeNode),
Boolean(BooleanTypeNode),
Bytes(BytesTypeNode),
DateTime(DateTimeTypeNode),
Enum(EnumTypeNode),
FixedSize(FixedSizeTypeNode<TypeNode>),
HiddenPrefix(HiddenPrefixTypeNode<TypeNode>),
HiddenSuffix(HiddenSuffixTypeNode<TypeNode>),
Map(MapTypeNode),
Number(NumberTypeNode),
Option(OptionTypeNode),
PostOffset(PostOffsetTypeNode<TypeNode>),
PreOffset(PreOffsetTypeNode<TypeNode>),
PublicKey(PublicKeyTypeNode),
RemainderOption(RemainderOptionTypeNode),
Sentinel(SentinelTypeNode<TypeNode>),
Set(SetTypeNode),
SizePrefix(SizePrefixTypeNode<TypeNode>),
SolAmount(SolAmountTypeNode),
String(StringTypeNode),
Struct(StructTypeNode),
Tuple(TupleTypeNode),
ZeroableOption(ZeroableOptionTypeNode),
Link(DefinedTypeLinkNode),
}Variants§
Amount(AmountTypeNode)
Array(ArrayTypeNode)
Boolean(BooleanTypeNode)
Bytes(BytesTypeNode)
DateTime(DateTimeTypeNode)
Enum(EnumTypeNode)
FixedSize(FixedSizeTypeNode<TypeNode>)
HiddenPrefix(HiddenPrefixTypeNode<TypeNode>)
HiddenSuffix(HiddenSuffixTypeNode<TypeNode>)
Map(MapTypeNode)
Number(NumberTypeNode)
Option(OptionTypeNode)
PostOffset(PostOffsetTypeNode<TypeNode>)
PreOffset(PreOffsetTypeNode<TypeNode>)
PublicKey(PublicKeyTypeNode)
RemainderOption(RemainderOptionTypeNode)
Sentinel(SentinelTypeNode<TypeNode>)
Set(SetTypeNode)
SizePrefix(SizePrefixTypeNode<TypeNode>)
SolAmount(SolAmountTypeNode)
String(StringTypeNode)
Struct(StructTypeNode)
Tuple(TupleTypeNode)
ZeroableOption(ZeroableOptionTypeNode)
Link(DefinedTypeLinkNode)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeNode
impl<'de> Deserialize<'de> for TypeNode
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<AmountTypeNode> for TypeNode
impl From<AmountTypeNode> for TypeNode
Source§fn from(value: AmountTypeNode) -> Self
fn from(value: AmountTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<ArrayTypeNode> for TypeNode
impl From<ArrayTypeNode> for TypeNode
Source§fn from(value: ArrayTypeNode) -> Self
fn from(value: ArrayTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<BooleanTypeNode> for TypeNode
impl From<BooleanTypeNode> for TypeNode
Source§fn from(value: BooleanTypeNode) -> Self
fn from(value: BooleanTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<BytesTypeNode> for TypeNode
impl From<BytesTypeNode> for TypeNode
Source§fn from(value: BytesTypeNode) -> Self
fn from(value: BytesTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<DateTimeTypeNode> for TypeNode
impl From<DateTimeTypeNode> for TypeNode
Source§fn from(value: DateTimeTypeNode) -> Self
fn from(value: DateTimeTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<DefinedTypeLinkNode> for TypeNode
impl From<DefinedTypeLinkNode> for TypeNode
Source§fn from(value: DefinedTypeLinkNode) -> Self
fn from(value: DefinedTypeLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<EnumTypeNode> for TypeNode
impl From<EnumTypeNode> for TypeNode
Source§fn from(value: EnumTypeNode) -> Self
fn from(value: EnumTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<FixedSizeTypeNode<TypeNode>> for TypeNode
impl From<FixedSizeTypeNode<TypeNode>> for TypeNode
Source§fn from(value: FixedSizeTypeNode<TypeNode>) -> Self
fn from(value: FixedSizeTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<HiddenPrefixTypeNode<TypeNode>> for TypeNode
impl From<HiddenPrefixTypeNode<TypeNode>> for TypeNode
Source§fn from(value: HiddenPrefixTypeNode<TypeNode>) -> Self
fn from(value: HiddenPrefixTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<HiddenSuffixTypeNode<TypeNode>> for TypeNode
impl From<HiddenSuffixTypeNode<TypeNode>> for TypeNode
Source§fn from(value: HiddenSuffixTypeNode<TypeNode>) -> Self
fn from(value: HiddenSuffixTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<MapTypeNode> for TypeNode
impl From<MapTypeNode> for TypeNode
Source§fn from(value: MapTypeNode) -> Self
fn from(value: MapTypeNode) -> Self
Converts to this type from the input type.
Source§impl<T: TypeNodeTrait> From<NestedTypeNode<T>> for TypeNode
impl<T: TypeNodeTrait> From<NestedTypeNode<T>> for TypeNode
Source§fn from(node: NestedTypeNode<T>) -> Self
fn from(node: NestedTypeNode<T>) -> Self
Converts to this type from the input type.
Source§impl From<NumberTypeNode> for TypeNode
impl From<NumberTypeNode> for TypeNode
Source§fn from(value: NumberTypeNode) -> Self
fn from(value: NumberTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<OptionTypeNode> for TypeNode
impl From<OptionTypeNode> for TypeNode
Source§fn from(value: OptionTypeNode) -> Self
fn from(value: OptionTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<PostOffsetTypeNode<TypeNode>> for TypeNode
impl From<PostOffsetTypeNode<TypeNode>> for TypeNode
Source§fn from(value: PostOffsetTypeNode<TypeNode>) -> Self
fn from(value: PostOffsetTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<PreOffsetTypeNode<TypeNode>> for TypeNode
impl From<PreOffsetTypeNode<TypeNode>> for TypeNode
Source§fn from(value: PreOffsetTypeNode<TypeNode>) -> Self
fn from(value: PreOffsetTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<PublicKeyTypeNode> for TypeNode
impl From<PublicKeyTypeNode> for TypeNode
Source§fn from(value: PublicKeyTypeNode) -> Self
fn from(value: PublicKeyTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<RemainderOptionTypeNode> for TypeNode
impl From<RemainderOptionTypeNode> for TypeNode
Source§fn from(value: RemainderOptionTypeNode) -> Self
fn from(value: RemainderOptionTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<SentinelTypeNode<TypeNode>> for TypeNode
impl From<SentinelTypeNode<TypeNode>> for TypeNode
Source§fn from(value: SentinelTypeNode<TypeNode>) -> Self
fn from(value: SentinelTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<SetTypeNode> for TypeNode
impl From<SetTypeNode> for TypeNode
Source§fn from(value: SetTypeNode) -> Self
fn from(value: SetTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<SizePrefixTypeNode<TypeNode>> for TypeNode
impl From<SizePrefixTypeNode<TypeNode>> for TypeNode
Source§fn from(value: SizePrefixTypeNode<TypeNode>) -> Self
fn from(value: SizePrefixTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<SolAmountTypeNode> for TypeNode
impl From<SolAmountTypeNode> for TypeNode
Source§fn from(value: SolAmountTypeNode) -> Self
fn from(value: SolAmountTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<StringTypeNode> for TypeNode
impl From<StringTypeNode> for TypeNode
Source§fn from(value: StringTypeNode) -> Self
fn from(value: StringTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<StructTypeNode> for TypeNode
impl From<StructTypeNode> for TypeNode
Source§fn from(value: StructTypeNode) -> Self
fn from(value: StructTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<TupleTypeNode> for TypeNode
impl From<TupleTypeNode> for TypeNode
Source§fn from(value: TupleTypeNode) -> Self
fn from(value: TupleTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<ZeroableOptionTypeNode> for TypeNode
impl From<ZeroableOptionTypeNode> for TypeNode
Source§fn from(value: ZeroableOptionTypeNode) -> Self
fn from(value: ZeroableOptionTypeNode) -> Self
Converts to this type from the input type.
Source§impl TryFrom<RegisteredTypeNode> for TypeNode
impl TryFrom<RegisteredTypeNode> for TypeNode
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§impl<T: TypeNodeTrait> TryFrom<TypeNode> for NestedTypeNode<T>
impl<T: TypeNodeTrait> TryFrom<TypeNode> for NestedTypeNode<T>
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(node: TypeNode) -> CodamaResult<Self>
fn try_from(node: TypeNode) -> CodamaResult<Self>
Performs the conversion.
Source§impl TryFrom<TypeNode> for RegisteredTypeNode
impl TryFrom<TypeNode> for RegisteredTypeNode
impl NodeUnionTrait for TypeNode
impl StructuralPartialEq for TypeNode
impl TypeNodeUnionTrait for TypeNode
Auto Trait Implementations§
impl Freeze for TypeNode
impl RefUnwindSafe for TypeNode
impl Send for TypeNode
impl Sync for TypeNode
impl Unpin for TypeNode
impl UnwindSafe for TypeNode
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