Struct anchor_syn::parser::accounts::constraints::ConstraintGroupBuilder
source · [−]pub struct ConstraintGroupBuilder<'ty> {Show 26 fields
pub f_ty: Option<&'ty Ty>,
pub init: Option<Context<ConstraintInit>>,
pub zeroed: Option<Context<ConstraintZeroed>>,
pub mutable: Option<Context<ConstraintMut>>,
pub signer: Option<Context<ConstraintSigner>>,
pub has_one: Vec<Context<ConstraintHasOne>>,
pub literal: Vec<Context<ConstraintLiteral>>,
pub raw: Vec<Context<ConstraintRaw>>,
pub owner: Option<Context<ConstraintOwner>>,
pub rent_exempt: Option<Context<ConstraintRentExempt>>,
pub seeds: Option<Context<ConstraintSeeds>>,
pub executable: Option<Context<ConstraintExecutable>>,
pub state: Option<Context<ConstraintState>>,
pub payer: Option<Context<ConstraintPayer>>,
pub space: Option<Context<ConstraintSpace>>,
pub close: Option<Context<ConstraintClose>>,
pub address: Option<Context<ConstraintAddress>>,
pub token_mint: Option<Context<ConstraintTokenMint>>,
pub token_authority: Option<Context<ConstraintTokenAuthority>>,
pub associated_token_mint: Option<Context<ConstraintTokenMint>>,
pub associated_token_authority: Option<Context<ConstraintTokenAuthority>>,
pub mint_authority: Option<Context<ConstraintMintAuthority>>,
pub mint_freeze_authority: Option<Context<ConstraintMintFreezeAuthority>>,
pub mint_decimals: Option<Context<ConstraintMintDecimals>>,
pub bump: Option<Context<ConstraintTokenBump>>,
pub program_seed: Option<Context<ConstraintProgramSeed>>,
}
Fields
f_ty: Option<&'ty Ty>
init: Option<Context<ConstraintInit>>
zeroed: Option<Context<ConstraintZeroed>>
mutable: Option<Context<ConstraintMut>>
signer: Option<Context<ConstraintSigner>>
has_one: Vec<Context<ConstraintHasOne>>
literal: Vec<Context<ConstraintLiteral>>
raw: Vec<Context<ConstraintRaw>>
owner: Option<Context<ConstraintOwner>>
rent_exempt: Option<Context<ConstraintRentExempt>>
seeds: Option<Context<ConstraintSeeds>>
executable: Option<Context<ConstraintExecutable>>
state: Option<Context<ConstraintState>>
payer: Option<Context<ConstraintPayer>>
space: Option<Context<ConstraintSpace>>
close: Option<Context<ConstraintClose>>
address: Option<Context<ConstraintAddress>>
token_mint: Option<Context<ConstraintTokenMint>>
associated_token_mint: Option<Context<ConstraintTokenMint>>
mint_decimals: Option<Context<ConstraintMintDecimals>>
bump: Option<Context<ConstraintTokenBump>>
program_seed: Option<Context<ConstraintProgramSeed>>
Implementations
sourceimpl<'ty> ConstraintGroupBuilder<'ty>
impl<'ty> ConstraintGroupBuilder<'ty>
pub fn new(f_ty: Option<&'ty Ty>) -> Self
pub fn build(self) -> ParseResult<ConstraintGroup>
pub fn add(&mut self, c: ConstraintToken) -> ParseResult<()>
Trait Implementations
sourceimpl<'ty> Default for ConstraintGroupBuilder<'ty>
impl<'ty> Default for ConstraintGroupBuilder<'ty>
sourcefn default() -> ConstraintGroupBuilder<'ty>
fn default() -> ConstraintGroupBuilder<'ty>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'ty> RefUnwindSafe for ConstraintGroupBuilder<'ty>
impl<'ty> !Send for ConstraintGroupBuilder<'ty>
impl<'ty> !Sync for ConstraintGroupBuilder<'ty>
impl<'ty> Unpin for ConstraintGroupBuilder<'ty>
impl<'ty> UnwindSafe for ConstraintGroupBuilder<'ty>
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