Struct anchor_syn::parser::accounts::constraints::ConstraintGroupBuilder
source · pub struct ConstraintGroupBuilder<'ty> {Show 27 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 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 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>>,
pub realloc: Option<Context<ConstraintRealloc>>,
pub realloc_payer: Option<Context<ConstraintReallocPayer>>,
pub realloc_zero: Option<Context<ConstraintReallocZero>>,
}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>>§raw: Vec<Context<ConstraintRaw>>§owner: Option<Context<ConstraintOwner>>§rent_exempt: Option<Context<ConstraintRentExempt>>§seeds: Option<Context<ConstraintSeeds>>§executable: Option<Context<ConstraintExecutable>>§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>>§realloc: Option<Context<ConstraintRealloc>>§realloc_payer: Option<Context<ConstraintReallocPayer>>§realloc_zero: Option<Context<ConstraintReallocZero>>Implementations§
source§impl<'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§
source§impl<'ty> Default for ConstraintGroupBuilder<'ty>
impl<'ty> Default for ConstraintGroupBuilder<'ty>
source§fn default() -> ConstraintGroupBuilder<'ty>
fn default() -> ConstraintGroupBuilder<'ty>
Returns the “default value” for a type. Read more