Struct anchor_syn::AccountsStruct
source · pub struct AccountsStruct {
pub ident: Ident,
pub generics: Generics,
pub fields: Vec<AccountField>,
/* private fields */
}
Fields§
§ident: Ident
§generics: Generics
§fields: Vec<AccountField>
Implementations§
source§impl AccountsStruct
impl AccountsStruct
pub fn new(
strct: ItemStruct,
fields: Vec<AccountField>,
instruction_api: Option<Punctuated<Expr, Comma>>
) -> Self
pub fn instruction_args(&self) -> Option<HashMap<String, String>>
pub fn field_names(&self) -> Vec<String>
pub fn has_optional(&self) -> bool
pub fn is_field_optional<T: ToTokens>(&self, field: &T) -> bool
Trait Implementations§
source§impl Debug for AccountsStruct
impl Debug for AccountsStruct
source§impl From<&AccountsStruct> for TokenStream
impl From<&AccountsStruct> for TokenStream
source§fn from(accounts: &AccountsStruct) -> Self
fn from(accounts: &AccountsStruct) -> Self
Converts to this type from the input type.