pub struct MiddlewareBuilder { /* private fields */ }
Implementations§
Source§impl MiddlewareBuilder
impl MiddlewareBuilder
pub fn new() -> Self
Sourcepub fn target_program_id(self, target_program_id: Pubkey) -> Self
pub fn target_program_id(self, target_program_id: Pubkey) -> Self
Hedef program id’sini ayarla
Sourcepub fn add_account_meta(
self,
pubkey: Pubkey,
is_signer: bool,
is_writable: bool,
) -> Self
pub fn add_account_meta( self, pubkey: Pubkey, is_signer: bool, is_writable: bool, ) -> Self
Account ekle
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Ekstra account ekle (opsiyonel)
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Birden fazla ekstra account ekle (opsiyonel)
Sourcepub fn instruction(&self) -> Instruction
pub fn instruction(&self) -> Instruction
Instruction oluştur
Trait Implementations§
Source§impl Default for MiddlewareBuilder
impl Default for MiddlewareBuilder
Source§fn default() -> MiddlewareBuilder
fn default() -> MiddlewareBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MiddlewareBuilder
impl RefUnwindSafe for MiddlewareBuilder
impl Send for MiddlewareBuilder
impl Sync for MiddlewareBuilder
impl Unpin for MiddlewareBuilder
impl UnwindSafe for MiddlewareBuilder
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