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_authority: Option<Context<ConstraintTokenAuthority>>§token_token_program: Option<Context<ConstraintTokenProgram>>§associated_token_mint: Option<Context<ConstraintTokenMint>>§associated_token_authority: Option<Context<ConstraintTokenAuthority>>§associated_token_token_program: Option<Context<ConstraintTokenProgram>>§mint_authority: Option<Context<ConstraintMintAuthority>>§mint_freeze_authority: Option<Context<ConstraintMintFreezeAuthority>>§mint_decimals: Option<Context<ConstraintMintDecimals>>§mint_token_program: Option<Context<ConstraintTokenProgram>>§extension_group_pointer_authority: Option<Context<ConstraintExtensionAuthority>>§extension_group_pointer_group_address: Option<Context<ConstraintExtensionGroupPointerGroupAddress>>§extension_group_member_pointer_authority: Option<Context<ConstraintExtensionAuthority>>§extension_group_member_pointer_member_address: Option<Context<ConstraintExtensionGroupMemberPointerMemberAddress>>§extension_metadata_pointer_authority: Option<Context<ConstraintExtensionAuthority>>§extension_metadata_pointer_metadata_address: Option<Context<ConstraintExtensionMetadataPointerMetadataAddress>>§extension_close_authority: Option<Context<ConstraintExtensionAuthority>>§extension_transfer_hook_authority: Option<Context<ConstraintExtensionAuthority>>§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>

source

pub fn new(f_ty: Option<&'ty Ty>) -> Self

source

pub fn build(self) -> ParseResult<ConstraintGroup>

source

pub fn add(&mut self, c: ConstraintToken) -> ParseResult<()>

Trait Implementations§

source§

impl<'ty> Default for ConstraintGroupBuilder<'ty>

source§

fn default() -> ConstraintGroupBuilder<'ty>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.