Struct anchor_syn::Field
source · [−]pub struct Field {
pub ident: Ident,
pub constraints: ConstraintGroup,
pub instruction_constraints: ConstraintGroup,
pub ty: Ty,
pub docs: String,
}
Fields
ident: Ident
constraints: ConstraintGroup
instruction_constraints: ConstraintGroup
ty: Ty
docs: String
Documentation string.
Implementations
sourceimpl Field
impl Field
pub fn typed_ident(&self) -> TokenStream
pub fn ty_decl(&self) -> TokenStream
pub fn from_account_info_unchecked(
&self,
kind: Option<&InitKind>
) -> TokenStream
pub fn container_ty(&self) -> TokenStream
pub fn account_ty(&self) -> TokenStream
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Field
impl !Send for Field
impl !Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more