Struct anchor_syn::parser::accounts::constraints::ConstraintGroupBuilder
source · pub struct ConstraintGroupBuilder<'ty> {Show 40 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 token_token_program: Option<Context<ConstraintTokenProgram>>,
pub associated_token_mint: Option<Context<ConstraintTokenMint>>,
pub associated_token_authority: Option<Context<ConstraintTokenAuthority>>,
pub associated_token_token_program: Option<Context<ConstraintTokenProgram>>,
pub mint_authority: Option<Context<ConstraintMintAuthority>>,
pub mint_freeze_authority: Option<Context<ConstraintMintFreezeAuthority>>,
pub mint_decimals: Option<Context<ConstraintMintDecimals>>,
pub mint_token_program: Option<Context<ConstraintTokenProgram>>,
pub extension_group_pointer_authority: Option<Context<ConstraintExtensionAuthority>>,
pub extension_group_pointer_group_address: Option<Context<ConstraintExtensionGroupPointerGroupAddress>>,
pub extension_group_member_pointer_authority: Option<Context<ConstraintExtensionAuthority>>,
pub extension_group_member_pointer_member_address: Option<Context<ConstraintExtensionGroupMemberPointerMemberAddress>>,
pub extension_metadata_pointer_authority: Option<Context<ConstraintExtensionAuthority>>,
pub extension_metadata_pointer_metadata_address: Option<Context<ConstraintExtensionMetadataPointerMetadataAddress>>,
pub extension_close_authority: Option<Context<ConstraintExtensionAuthority>>,
pub extension_transfer_hook_authority: Option<Context<ConstraintExtensionAuthority>>,
pub extension_transfer_hook_program_id: Option<Context<ConstraintExtensionTokenHookProgramId>>,
pub extension_permanent_delegate: Option<Context<ConstraintExtensionPermanentDelegate>>,
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>>
§token_token_program: Option<Context<ConstraintTokenProgram>>
§associated_token_mint: Option<Context<ConstraintTokenMint>>
§associated_token_token_program: Option<Context<ConstraintTokenProgram>>
§mint_decimals: Option<Context<ConstraintMintDecimals>>
§mint_token_program: Option<Context<ConstraintTokenProgram>>
§extension_group_pointer_group_address: Option<Context<ConstraintExtensionGroupPointerGroupAddress>>
§extension_group_member_pointer_member_address: Option<Context<ConstraintExtensionGroupMemberPointerMemberAddress>>
§extension_metadata_pointer_metadata_address: Option<Context<ConstraintExtensionMetadataPointerMetadataAddress>>
§extension_transfer_hook_program_id: Option<Context<ConstraintExtensionTokenHookProgramId>>
§extension_permanent_delegate: Option<Context<ConstraintExtensionPermanentDelegate>>
§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
Auto Trait Implementations§
impl<'ty> Freeze for ConstraintGroupBuilder<'ty>
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§
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