pub struct ConstraintGroup {Show 17 fields
pub init: Option<ConstraintInitGroup>,
pub zeroed: Option<ConstraintZeroed>,
pub mutable: Option<ConstraintMut>,
pub dup: Option<ConstraintDup>,
pub signer: Option<ConstraintSigner>,
pub owner: Option<ConstraintOwner>,
pub rent_exempt: Option<ConstraintRentExempt>,
pub seeds: Option<ConstraintSeedsGroup>,
pub executable: Option<ConstraintExecutable>,
pub has_one: Vec<ConstraintHasOne>,
pub raw: Vec<ConstraintRaw>,
pub close: Option<ConstraintClose>,
pub address: Option<ConstraintAddress>,
pub associated_token: Option<ConstraintAssociatedToken>,
pub token_account: Option<ConstraintTokenAccountGroup>,
pub mint: Option<ConstraintTokenMintGroup>,
pub realloc: Option<ConstraintReallocGroup>,
}Fields§
§init: Option<ConstraintInitGroup>§zeroed: Option<ConstraintZeroed>§mutable: Option<ConstraintMut>§dup: Option<ConstraintDup>§signer: Option<ConstraintSigner>§owner: Option<ConstraintOwner>§rent_exempt: Option<ConstraintRentExempt>§seeds: Option<ConstraintSeedsGroup>§executable: Option<ConstraintExecutable>§has_one: Vec<ConstraintHasOne>§raw: Vec<ConstraintRaw>§close: Option<ConstraintClose>§address: Option<ConstraintAddress>§associated_token: Option<ConstraintAssociatedToken>§token_account: Option<ConstraintTokenAccountGroup>§mint: Option<ConstraintTokenMintGroup>§realloc: Option<ConstraintReallocGroup>Implementations§
Source§impl ConstraintGroup
impl ConstraintGroup
pub fn is_zeroed(&self) -> bool
pub fn is_mutable(&self) -> bool
pub fn is_dup(&self) -> bool
Sourcepub fn is_pure_init(&self) -> bool
pub fn is_pure_init(&self) -> bool
Returns true when the field has #[account(init, ...)] but not
#[account(init_if_needed, ...)].
pub fn is_signer(&self) -> bool
pub fn is_close(&self) -> bool
Trait Implementations§
Source§impl Clone for ConstraintGroup
impl Clone for ConstraintGroup
Source§fn clone(&self) -> ConstraintGroup
fn clone(&self) -> ConstraintGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstraintGroup
impl Debug for ConstraintGroup
Source§impl Default for ConstraintGroup
impl Default for ConstraintGroup
Source§fn default() -> ConstraintGroup
fn default() -> ConstraintGroup
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConstraintGroup
impl RefUnwindSafe for ConstraintGroup
impl !Send for ConstraintGroup
impl !Sync for ConstraintGroup
impl Unpin for ConstraintGroup
impl UnsafeUnpin for ConstraintGroup
impl UnwindSafe for ConstraintGroup
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