Struct anchor_syn::parser::accounts::constraints::ConstraintGroupBuilder[][src]

pub struct ConstraintGroupBuilder {
Show fields pub init: Option<Context<ConstraintInit>>, pub mutable: Option<Context<ConstraintMut>>, pub signer: Option<Context<ConstraintSigner>>, pub belongs_to: Vec<Context<ConstraintBelongsTo>>, 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 associated: Option<Context<ConstraintAssociated>>, pub associated_payer: Option<Context<ConstraintAssociatedPayer>>, pub associated_space: Option<Context<ConstraintAssociatedSpace>>, pub associated_with: Vec<Context<ConstraintAssociatedWith>>,
}

Fields

init: Option<Context<ConstraintInit>>mutable: Option<Context<ConstraintMut>>signer: Option<Context<ConstraintSigner>>belongs_to: Vec<Context<ConstraintBelongsTo>>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>>associated: Option<Context<ConstraintAssociated>>associated_payer: Option<Context<ConstraintAssociatedPayer>>associated_space: Option<Context<ConstraintAssociatedSpace>>associated_with: Vec<Context<ConstraintAssociatedWith>>

Implementations

impl ConstraintGroupBuilder[src]

pub fn build(self) -> ParseResult<ConstraintGroup>[src]

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

Trait Implementations

impl Default for ConstraintGroupBuilder[src]

fn default() -> ConstraintGroupBuilder[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.