pub struct CreateOrUpdateBuilder {
pub payer: Option<Pubkey>,
pub rule_set_pda: Option<Pubkey>,
pub system_program: Option<Pubkey>,
pub buffer_pda: Option<Pubkey>,
}
Fields§
§payer: Option<Pubkey>
§rule_set_pda: Option<Pubkey>
§system_program: Option<Pubkey>
§buffer_pda: Option<Pubkey>
Implementations§
Source§impl CreateOrUpdateBuilder
impl CreateOrUpdateBuilder
pub fn new() -> Box<CreateOrUpdateBuilder>
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn rule_set_pda(&mut self, rule_set_pda: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn buffer_pda(&mut self, buffer_pda: Pubkey) -> &mut Self
pub fn build( &mut self, args: CreateOrUpdateArgs, ) -> Result<Box<CreateOrUpdate>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for CreateOrUpdateBuilder
impl RefUnwindSafe for CreateOrUpdateBuilder
impl Send for CreateOrUpdateBuilder
impl Sync for CreateOrUpdateBuilder
impl Unpin for CreateOrUpdateBuilder
impl UnwindSafe for CreateOrUpdateBuilder
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