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