pub enum CodamaDirective {
Show 17 variants
Type(TypeDirective),
Encoding(EncodingDirective),
Field(FieldDirective),
FixedSize(FixedSizeDirective),
SizePrefix(SizePrefixDirective),
DefaultValue(DefaultValueDirective),
Discriminator(DiscriminatorDirective),
EnumDiscriminator(EnumDiscriminatorDirective),
Name(NameDirective),
OptionalAccountStrategy(OptionalAccountStrategyDirective),
Program(ProgramDirective),
Seed(SeedDirective),
Skip(SkipDirective),
Pda(PdaDirective),
Account(AccountDirective),
Argument(ArgumentDirective),
Error(ErrorDirective),
}Variants§
Type(TypeDirective)
Encoding(EncodingDirective)
Field(FieldDirective)
FixedSize(FixedSizeDirective)
SizePrefix(SizePrefixDirective)
DefaultValue(DefaultValueDirective)
Discriminator(DiscriminatorDirective)
EnumDiscriminator(EnumDiscriminatorDirective)
Name(NameDirective)
OptionalAccountStrategy(OptionalAccountStrategyDirective)
Program(ProgramDirective)
Seed(SeedDirective)
Skip(SkipDirective)
Pda(PdaDirective)
Account(AccountDirective)
Argument(ArgumentDirective)
Error(ErrorDirective)
Implementations§
Trait Implementations§
Source§impl Debug for CodamaDirective
impl Debug for CodamaDirective
Source§impl From<AccountDirective> for CodamaDirective
impl From<AccountDirective> for CodamaDirective
Source§fn from(value: AccountDirective) -> Self
fn from(value: AccountDirective) -> Self
Converts to this type from the input type.
Source§impl From<ArgumentDirective> for CodamaDirective
impl From<ArgumentDirective> for CodamaDirective
Source§fn from(value: ArgumentDirective) -> Self
fn from(value: ArgumentDirective) -> Self
Converts to this type from the input type.
Source§impl From<DefaultValueDirective> for CodamaDirective
impl From<DefaultValueDirective> for CodamaDirective
Source§fn from(value: DefaultValueDirective) -> Self
fn from(value: DefaultValueDirective) -> Self
Converts to this type from the input type.
Source§impl From<DiscriminatorDirective> for CodamaDirective
impl From<DiscriminatorDirective> for CodamaDirective
Source§fn from(value: DiscriminatorDirective) -> Self
fn from(value: DiscriminatorDirective) -> Self
Converts to this type from the input type.
Source§impl From<EncodingDirective> for CodamaDirective
impl From<EncodingDirective> for CodamaDirective
Source§fn from(value: EncodingDirective) -> Self
fn from(value: EncodingDirective) -> Self
Converts to this type from the input type.
Source§impl From<EnumDiscriminatorDirective> for CodamaDirective
impl From<EnumDiscriminatorDirective> for CodamaDirective
Source§fn from(value: EnumDiscriminatorDirective) -> Self
fn from(value: EnumDiscriminatorDirective) -> Self
Converts to this type from the input type.
Source§impl From<ErrorDirective> for CodamaDirective
impl From<ErrorDirective> for CodamaDirective
Source§fn from(value: ErrorDirective) -> Self
fn from(value: ErrorDirective) -> Self
Converts to this type from the input type.
Source§impl From<FieldDirective> for CodamaDirective
impl From<FieldDirective> for CodamaDirective
Source§fn from(value: FieldDirective) -> Self
fn from(value: FieldDirective) -> Self
Converts to this type from the input type.
Source§impl From<FixedSizeDirective> for CodamaDirective
impl From<FixedSizeDirective> for CodamaDirective
Source§fn from(value: FixedSizeDirective) -> Self
fn from(value: FixedSizeDirective) -> Self
Converts to this type from the input type.
Source§impl From<NameDirective> for CodamaDirective
impl From<NameDirective> for CodamaDirective
Source§fn from(value: NameDirective) -> Self
fn from(value: NameDirective) -> Self
Converts to this type from the input type.
Source§impl From<OptionalAccountStrategyDirective> for CodamaDirective
impl From<OptionalAccountStrategyDirective> for CodamaDirective
Source§fn from(value: OptionalAccountStrategyDirective) -> Self
fn from(value: OptionalAccountStrategyDirective) -> Self
Converts to this type from the input type.
Source§impl From<PdaDirective> for CodamaDirective
impl From<PdaDirective> for CodamaDirective
Source§fn from(value: PdaDirective) -> Self
fn from(value: PdaDirective) -> Self
Converts to this type from the input type.
Source§impl From<ProgramDirective> for CodamaDirective
impl From<ProgramDirective> for CodamaDirective
Source§fn from(value: ProgramDirective) -> Self
fn from(value: ProgramDirective) -> Self
Converts to this type from the input type.
Source§impl From<SeedDirective> for CodamaDirective
impl From<SeedDirective> for CodamaDirective
Source§fn from(value: SeedDirective) -> Self
fn from(value: SeedDirective) -> Self
Converts to this type from the input type.
Source§impl From<SizePrefixDirective> for CodamaDirective
impl From<SizePrefixDirective> for CodamaDirective
Source§fn from(value: SizePrefixDirective) -> Self
fn from(value: SizePrefixDirective) -> Self
Converts to this type from the input type.
Source§impl From<SkipDirective> for CodamaDirective
impl From<SkipDirective> for CodamaDirective
Source§fn from(value: SkipDirective) -> Self
fn from(value: SkipDirective) -> Self
Converts to this type from the input type.
Source§impl From<TypeDirective> for CodamaDirective
impl From<TypeDirective> for CodamaDirective
Source§fn from(value: TypeDirective) -> Self
fn from(value: TypeDirective) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CodamaDirective
impl PartialEq for CodamaDirective
Source§fn eq(&self, other: &CodamaDirective) -> bool
fn eq(&self, other: &CodamaDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodamaDirective
Auto Trait Implementations§
impl !Send for CodamaDirective
impl !Sync for CodamaDirective
impl Freeze for CodamaDirective
impl RefUnwindSafe for CodamaDirective
impl Unpin for CodamaDirective
impl UnsafeUnpin for CodamaDirective
impl UnwindSafe for CodamaDirective
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