pub struct RemainingAccountsDirective {
pub value: InstructionRemainingAccountsValue,
pub is_signer: Option<IsSigner>,
pub is_writable: Option<bool>,
pub is_optional: Option<bool>,
pub docs: Docs,
pub display: Option<InstructionAccountDisplayNode>,
}Fields§
§value: InstructionRemainingAccountsValue§is_signer: Option<IsSigner>§is_writable: Option<bool>§is_optional: Option<bool>§docs: Docs§display: Option<InstructionAccountDisplayNode>Implementations§
Source§impl RemainingAccountsDirective
impl RemainingAccountsDirective
pub fn parse(meta: &Meta) -> Result<Self>
Sourcepub fn to_instruction_remaining_accounts_node(
&self,
) -> InstructionRemainingAccountsNode
pub fn to_instruction_remaining_accounts_node( &self, ) -> InstructionRemainingAccountsNode
Construct an InstructionRemainingAccountsNode from this directive.
Source§impl RemainingAccountsDirective
impl RemainingAccountsDirective
pub fn nodes( attributes: &Attributes<'_>, ) -> Vec<InstructionRemainingAccountsNode>
Trait Implementations§
Source§impl Debug for RemainingAccountsDirective
impl Debug for RemainingAccountsDirective
Source§impl From<RemainingAccountsDirective> for CodamaDirective
impl From<RemainingAccountsDirective> for CodamaDirective
Source§fn from(value: RemainingAccountsDirective) -> Self
fn from(value: RemainingAccountsDirective) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for RemainingAccountsDirective
Source§impl<'a> TryFrom<&'a Attribute<'a>> for &'a RemainingAccountsDirective
impl<'a> TryFrom<&'a Attribute<'a>> for &'a RemainingAccountsDirective
Source§impl<'a> TryFrom<&'a CodamaAttribute<'a>> for &'a RemainingAccountsDirective
impl<'a> TryFrom<&'a CodamaAttribute<'a>> for &'a RemainingAccountsDirective
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RemainingAccountsDirective
impl RefUnwindSafe for RemainingAccountsDirective
impl Send for RemainingAccountsDirective
impl Sync for RemainingAccountsDirective
impl Unpin for RemainingAccountsDirective
impl UnsafeUnpin for RemainingAccountsDirective
impl UnwindSafe for RemainingAccountsDirective
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