#[non_exhaustive]pub struct SignAndSendTransactionOptions {
pub sponsor: Option<bool>,
}Expand description
Options for signing and sending a Solana transaction.
This struct uses #[non_exhaustive] to allow new fields to be added in the future
without breaking existing code. Always construct using ..Default::default():
use privy_rs::solana::SignAndSendTransactionOptions;
let options = SignAndSendTransactionOptions::new().with_sponsor(true);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sponsor: Option<bool>Whether to sponsor (pay for) the transaction fees.
Some(true)— enable gas sponsorshipSome(false)— explicitly disable gas sponsorshipNone— use the server default
Implementations§
Source§impl SignAndSendTransactionOptions
impl SignAndSendTransactionOptions
Sourcepub fn with_sponsor(self, sponsor: bool) -> Self
pub fn with_sponsor(self, sponsor: bool) -> Self
Sets the sponsor option.
Trait Implementations§
Source§impl Clone for SignAndSendTransactionOptions
impl Clone for SignAndSendTransactionOptions
Source§fn clone(&self) -> SignAndSendTransactionOptions
fn clone(&self) -> SignAndSendTransactionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SignAndSendTransactionOptions
impl Default for SignAndSendTransactionOptions
Source§fn default() -> SignAndSendTransactionOptions
fn default() -> SignAndSendTransactionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignAndSendTransactionOptions
impl RefUnwindSafe for SignAndSendTransactionOptions
impl Send for SignAndSendTransactionOptions
impl Sync for SignAndSendTransactionOptions
impl Unpin for SignAndSendTransactionOptions
impl UnsafeUnpin for SignAndSendTransactionOptions
impl UnwindSafe for SignAndSendTransactionOptions
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