Struct anchor_syn::Field
source · pub struct Field {
pub ident: Ident,
pub constraints: ConstraintGroup,
pub ty: Ty,
pub is_optional: bool,
pub docs: Option<Vec<String>>,
}
Fields§
§ident: Ident
§constraints: ConstraintGroup
§ty: Ty
§is_optional: bool
§docs: Option<Vec<String>>
IDL Doc comment
Implementations§
source§impl Field
impl Field
pub fn typed_ident(&self) -> TokenStream
pub fn ty_decl(&self, ignore_option: bool) -> TokenStream
pub fn from_account_info( &self, kind: Option<&InitKind>, checked: bool, ) -> TokenStream
pub fn container_ty(&self) -> TokenStream
pub fn account_ty(&self) -> TokenStream
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl !Send for Field
impl !Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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