pub struct RevokeUseAuthorityBuilder {
pub use_authority_record: Option<Pubkey>,
pub owner: Option<Pubkey>,
pub user: Option<Pubkey>,
pub owner_token_account: Option<Pubkey>,
pub mint: Option<Pubkey>,
pub metadata: Option<Pubkey>,
pub token_program: Option<Pubkey>,
pub system_program: Option<Pubkey>,
pub rent: Option<Pubkey>,
}
Fields§
§owner: Option<Pubkey>
§user: Option<Pubkey>
§owner_token_account: Option<Pubkey>
§mint: Option<Pubkey>
§metadata: Option<Pubkey>
§token_program: Option<Pubkey>
§system_program: Option<Pubkey>
§rent: Option<Pubkey>
Implementations§
source§impl RevokeUseAuthorityBuilder
impl RevokeUseAuthorityBuilder
pub fn new() -> Box<RevokeUseAuthorityBuilder>
pub fn owner(&mut self, owner: Pubkey) -> &mut Self
pub fn user(&mut self, user: Pubkey) -> &mut Self
pub fn owner_token_account(&mut self, owner_token_account: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn rent(&mut self, rent: Pubkey) -> &mut Self
pub fn build(&mut self) -> Result<Box<RevokeUseAuthority>, Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for RevokeUseAuthorityBuilder
impl Send for RevokeUseAuthorityBuilder
impl Sync for RevokeUseAuthorityBuilder
impl Unpin for RevokeUseAuthorityBuilder
impl UnwindSafe for RevokeUseAuthorityBuilder
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