pub struct AccountDirective {
pub name: CamelCaseString,
pub is_writable: bool,
pub is_signer: IsAccountSigner,
pub is_optional: bool,
pub default_value: Option<InstructionInputValueNode>,
}Fields§
§name: CamelCaseString§is_writable: bool§is_signer: IsAccountSigner§is_optional: bool§default_value: Option<InstructionInputValueNode>Implementations§
Source§impl AccountDirective
impl AccountDirective
pub fn parse(meta: &Meta, ctx: &AttributeContext<'_>) -> Result<Self>
Trait Implementations§
Source§impl Debug for AccountDirective
impl Debug for AccountDirective
Source§impl From<&AccountDirective> for InstructionAccountNode
impl From<&AccountDirective> for InstructionAccountNode
Source§fn from(value: &AccountDirective) -> Self
fn from(value: &AccountDirective) -> Self
Converts to this type from the input type.
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 PartialEq for AccountDirective
impl PartialEq for AccountDirective
Source§impl<'a> TryFrom<&'a Attribute<'a>> for &'a AccountDirective
impl<'a> TryFrom<&'a Attribute<'a>> for &'a AccountDirective
Source§impl<'a> TryFrom<&'a CodamaAttribute<'a>> for &'a AccountDirective
impl<'a> TryFrom<&'a CodamaAttribute<'a>> for &'a AccountDirective
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
impl StructuralPartialEq for AccountDirective
Auto Trait Implementations§
impl Freeze for AccountDirective
impl RefUnwindSafe for AccountDirective
impl Send for AccountDirective
impl Sync for AccountDirective
impl Unpin for AccountDirective
impl UnwindSafe for AccountDirective
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