Enum anchor_syn::InitKind
source · pub enum InitKind {
Program {
owner: Option<Expr>,
},
Interface {
owner: Option<Expr>,
},
Token {
owner: Expr,
mint: Expr,
token_program: Option<Expr>,
},
AssociatedToken {
owner: Expr,
mint: Expr,
token_program: Option<Expr>,
},
Mint {Show 14 fields
owner: Expr,
freeze_authority: Option<Expr>,
decimals: Expr,
token_program: Option<Expr>,
group_pointer_authority: Option<Expr>,
group_pointer_group_address: Option<Expr>,
group_member_pointer_authority: Option<Expr>,
group_member_pointer_member_address: Option<Expr>,
metadata_pointer_authority: Option<Expr>,
metadata_pointer_metadata_address: Option<Expr>,
close_authority: Option<Expr>,
permanent_delegate: Option<Expr>,
transfer_hook_authority: Option<Expr>,
transfer_hook_program_id: Option<Expr>,
},
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitKind
impl RefUnwindSafe for InitKind
impl !Send for InitKind
impl !Sync for InitKind
impl Unpin for InitKind
impl UnwindSafe for InitKind
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