NodeTrait

Trait NodeTrait 

Source
pub trait NodeTrait:
    HasKind
    + Debug
    + PartialEq
    + Clone
    + Serialize
    + for<'de> Deserialize<'de> {
    const KIND: &'static str;

    // Provided methods
    fn to_json(&self) -> CodamaResult<String> { ... }
    fn to_json_pretty(&self) -> CodamaResult<String> { ... }
    fn from_json(json: &str) -> CodamaResult<Self> { ... }
}

Required Associated Constants§

Source

const KIND: &'static str

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl NodeTrait for AccountBumpValueNode

Source§

const KIND: &'static str = "accountBumpValueNode"

Source§

impl NodeTrait for AccountLinkNode

Source§

const KIND: &'static str = "accountLinkNode"

Source§

impl NodeTrait for AccountNode

Source§

const KIND: &'static str = "accountNode"

Source§

impl NodeTrait for AccountValueNode

Source§

const KIND: &'static str = "accountValueNode"

Source§

impl NodeTrait for AmountTypeNode

Source§

const KIND: &'static str = "amountTypeNode"

Source§

impl NodeTrait for ArgumentValueNode

Source§

const KIND: &'static str = "argumentValueNode"

Source§

impl NodeTrait for ArrayTypeNode

Source§

const KIND: &'static str = "arrayTypeNode"

Source§

impl NodeTrait for ArrayValueNode

Source§

const KIND: &'static str = "arrayValueNode"

Source§

impl NodeTrait for BooleanTypeNode

Source§

const KIND: &'static str = "booleanTypeNode"

Source§

impl NodeTrait for BooleanValueNode

Source§

const KIND: &'static str = "booleanValueNode"

Source§

impl NodeTrait for BytesTypeNode

Source§

const KIND: &'static str = "bytesTypeNode"

Source§

impl NodeTrait for BytesValueNode

Source§

const KIND: &'static str = "bytesValueNode"

Source§

impl NodeTrait for ConditionalValueNode

Source§

const KIND: &'static str = "conditionalValueNode"

Source§

impl NodeTrait for ConstantDiscriminatorNode

Source§

const KIND: &'static str = "constantDiscriminatorNode"

Source§

impl NodeTrait for ConstantPdaSeedNode

Source§

const KIND: &'static str = "constantPdaSeedNode"

Source§

impl NodeTrait for ConstantValueNode

Source§

const KIND: &'static str = "constantValueNode"

Source§

impl NodeTrait for DateTimeTypeNode

Source§

const KIND: &'static str = "dateTimeTypeNode"

Source§

impl NodeTrait for DefinedTypeLinkNode

Source§

const KIND: &'static str = "definedTypeLinkNode"

Source§

impl NodeTrait for DefinedTypeNode

Source§

const KIND: &'static str = "definedTypeNode"

Source§

impl NodeTrait for EnumEmptyVariantTypeNode

Source§

const KIND: &'static str = "enumEmptyVariantTypeNode"

Source§

impl NodeTrait for EnumStructVariantTypeNode

Source§

const KIND: &'static str = "enumStructVariantTypeNode"

Source§

impl NodeTrait for EnumTupleVariantTypeNode

Source§

const KIND: &'static str = "enumTupleVariantTypeNode"

Source§

impl NodeTrait for EnumTypeNode

Source§

const KIND: &'static str = "enumTypeNode"

Source§

impl NodeTrait for EnumValueNode

Source§

const KIND: &'static str = "enumValueNode"

Source§

impl NodeTrait for ErrorNode

Source§

const KIND: &'static str = "errorNode"

Source§

impl NodeTrait for FieldDiscriminatorNode

Source§

const KIND: &'static str = "fieldDiscriminatorNode"

Source§

impl NodeTrait for FixedCountNode

Source§

const KIND: &'static str = "fixedCountNode"

Source§

impl NodeTrait for IdentityValueNode

Source§

const KIND: &'static str = "identityValueNode"

Source§

impl NodeTrait for InstructionAccountLinkNode

Source§

const KIND: &'static str = "instructionAccountLinkNode"

Source§

impl NodeTrait for InstructionAccountNode

Source§

const KIND: &'static str = "instructionAccountNode"

Source§

impl NodeTrait for InstructionArgumentLinkNode

Source§

const KIND: &'static str = "instructionArgumentLinkNode"

Source§

impl NodeTrait for InstructionArgumentNode

Source§

const KIND: &'static str = "instructionArgumentNode"

Source§

impl NodeTrait for InstructionByteDeltaNode

Source§

const KIND: &'static str = "instructionByteDeltaNode"

Source§

impl NodeTrait for InstructionLinkNode

Source§

const KIND: &'static str = "instructionLinkNode"

Source§

impl NodeTrait for InstructionNode

Source§

const KIND: &'static str = "instructionNode"

Source§

impl NodeTrait for InstructionRemainingAccountsNode

Source§

const KIND: &'static str = "instructionRemainingAccountsNode"

Source§

impl NodeTrait for MapEntryValueNode

Source§

const KIND: &'static str = "mapEntryValueNode"

Source§

impl NodeTrait for MapTypeNode

Source§

const KIND: &'static str = "mapTypeNode"

Source§

impl NodeTrait for MapValueNode

Source§

const KIND: &'static str = "mapValueNode"

Source§

impl NodeTrait for NoneValueNode

Source§

const KIND: &'static str = "noneValueNode"

Source§

impl NodeTrait for NumberTypeNode

Source§

const KIND: &'static str = "numberTypeNode"

Source§

impl NodeTrait for NumberValueNode

Source§

const KIND: &'static str = "numberValueNode"

Source§

impl NodeTrait for OptionTypeNode

Source§

const KIND: &'static str = "optionTypeNode"

Source§

impl NodeTrait for PayerValueNode

Source§

const KIND: &'static str = "payerValueNode"

Source§

impl NodeTrait for PdaLinkNode

Source§

const KIND: &'static str = "pdaLinkNode"

Source§

impl NodeTrait for PdaNode

Source§

const KIND: &'static str = "pdaNode"

Source§

impl NodeTrait for PdaSeedValueNode

Source§

const KIND: &'static str = "pdaSeedValueNode"

Source§

impl NodeTrait for PdaValueNode

Source§

const KIND: &'static str = "pdaValueNode"

Source§

impl NodeTrait for PrefixedCountNode

Source§

const KIND: &'static str = "prefixedCountNode"

Source§

impl NodeTrait for ProgramIdValueNode

Source§

const KIND: &'static str = "programIdValueNode"

Source§

impl NodeTrait for ProgramLinkNode

Source§

const KIND: &'static str = "programLinkNode"

Source§

impl NodeTrait for ProgramNode

Source§

const KIND: &'static str = "programNode"

Source§

impl NodeTrait for PublicKeyTypeNode

Source§

const KIND: &'static str = "publicKeyTypeNode"

Source§

impl NodeTrait for PublicKeyValueNode

Source§

const KIND: &'static str = "publicKeyValueNode"

Source§

impl NodeTrait for RemainderCountNode

Source§

const KIND: &'static str = "remainderCountNode"

Source§

impl NodeTrait for RemainderOptionTypeNode

Source§

const KIND: &'static str = "remainderOptionTypeNode"

Source§

impl NodeTrait for ResolverValueNode

Source§

const KIND: &'static str = "resolverValueNode"

Source§

impl NodeTrait for RootNode

Source§

const KIND: &'static str = "rootNode"

Source§

impl NodeTrait for SetTypeNode

Source§

const KIND: &'static str = "setTypeNode"

Source§

impl NodeTrait for SetValueNode

Source§

const KIND: &'static str = "setValueNode"

Source§

impl NodeTrait for SizeDiscriminatorNode

Source§

const KIND: &'static str = "sizeDiscriminatorNode"

Source§

impl NodeTrait for SolAmountTypeNode

Source§

const KIND: &'static str = "solAmountTypeNode"

Source§

impl NodeTrait for SomeValueNode

Source§

const KIND: &'static str = "someValueNode"

Source§

impl NodeTrait for StringTypeNode

Source§

const KIND: &'static str = "stringTypeNode"

Source§

impl NodeTrait for StringValueNode

Source§

const KIND: &'static str = "stringValueNode"

Source§

impl NodeTrait for StructFieldTypeNode

Source§

const KIND: &'static str = "structFieldTypeNode"

Source§

impl NodeTrait for StructFieldValueNode

Source§

const KIND: &'static str = "structFieldValueNode"

Source§

impl NodeTrait for StructTypeNode

Source§

const KIND: &'static str = "structTypeNode"

Source§

impl NodeTrait for StructValueNode

Source§

const KIND: &'static str = "structValueNode"

Source§

impl NodeTrait for TupleTypeNode

Source§

const KIND: &'static str = "tupleTypeNode"

Source§

impl NodeTrait for TupleValueNode

Source§

const KIND: &'static str = "tupleValueNode"

Source§

impl NodeTrait for VariablePdaSeedNode

Source§

const KIND: &'static str = "variablePdaSeedNode"

Source§

impl NodeTrait for ZeroableOptionTypeNode

Source§

const KIND: &'static str = "zeroableOptionTypeNode"

Source§

impl<T: TypeNodeUnionTrait> NodeTrait for FixedSizeTypeNode<T>

Source§

const KIND: &'static str = "fixedSizeTypeNode"

Source§

impl<T: TypeNodeUnionTrait> NodeTrait for HiddenPrefixTypeNode<T>

Source§

const KIND: &'static str = "hiddenPrefixTypeNode"

Source§

impl<T: TypeNodeUnionTrait> NodeTrait for HiddenSuffixTypeNode<T>

Source§

const KIND: &'static str = "hiddenSuffixTypeNode"

Source§

impl<T: TypeNodeUnionTrait> NodeTrait for PostOffsetTypeNode<T>

Source§

const KIND: &'static str = "postOffsetTypeNode"

Source§

impl<T: TypeNodeUnionTrait> NodeTrait for PreOffsetTypeNode<T>

Source§

const KIND: &'static str = "preOffsetTypeNode"

Source§

impl<T: TypeNodeUnionTrait> NodeTrait for SentinelTypeNode<T>

Source§

const KIND: &'static str = "sentinelTypeNode"

Source§

impl<T: TypeNodeUnionTrait> NodeTrait for SizePrefixTypeNode<T>

Source§

const KIND: &'static str = "sizePrefixTypeNode"