pub struct ApproveParams<'a> {
pub price: u64,
pub royalty_fee: u64,
pub signer_seeds: &'a [&'a [&'a [u8]]],
}Expand description
Parameters for the Approve helper function.
Fields§
§price: u64§royalty_fee: u64§signer_seeds: &'a [&'a [&'a [u8]]]Implementations§
Source§impl<'a> ApproveParams<'a>
impl<'a> ApproveParams<'a>
Sourcepub fn no_royalties() -> Self
pub fn no_royalties() -> Self
Creates a new ApproveParams instance for no royalties for wallet signer.
Sourcepub fn no_royalties_with_signer_seeds(
signer_seeds: &'a [&'a [&'a [u8]]],
) -> Self
pub fn no_royalties_with_signer_seeds( signer_seeds: &'a [&'a [&'a [u8]]], ) -> Self
Creates a new ApproveParams instance for no royalties for PDA signer.
Auto Trait Implementations§
impl<'a> Freeze for ApproveParams<'a>
impl<'a> RefUnwindSafe for ApproveParams<'a>
impl<'a> Send for ApproveParams<'a>
impl<'a> Sync for ApproveParams<'a>
impl<'a> Unpin for ApproveParams<'a>
impl<'a> UnwindSafe for ApproveParams<'a>
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