pub struct ValidateBuilder {
pub rule_set_pda: Option<Pubkey>,
pub mint: Option<Pubkey>,
pub system_program: Option<Pubkey>,
pub payer: Option<Pubkey>,
pub rule_authority: Option<Pubkey>,
pub rule_set_state_pda: Option<Pubkey>,
pub additional_rule_accounts: Option<Vec<AccountMeta>>,
}
Fields§
§rule_set_pda: Option<Pubkey>
§mint: Option<Pubkey>
§system_program: Option<Pubkey>
§payer: Option<Pubkey>
§rule_set_state_pda: Option<Pubkey>
§additional_rule_accounts: Option<Vec<AccountMeta>>
Implementations§
Source§impl ValidateBuilder
impl ValidateBuilder
pub fn new() -> Box<ValidateBuilder>
pub fn rule_set_pda(&mut self, rule_set_pda: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn rule_set_state_pda(&mut self, rule_set_state_pda: Pubkey) -> &mut Self
pub fn additional_rule_accounts( &mut self, additional_rule_accounts: Vec<AccountMeta>, ) -> &mut Self
pub fn build( &mut self, args: ValidateArgs, ) -> Result<Box<Validate>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for ValidateBuilder
impl RefUnwindSafe for ValidateBuilder
impl Send for ValidateBuilder
impl Sync for ValidateBuilder
impl Unpin for ValidateBuilder
impl UnwindSafe for ValidateBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more