pub struct TransactionCost {
pub transaction_fee_lamports: Option<u64>,
pub total_fee_and_tip_lamports: Option<u64>,
pub compute_units_consumed: Option<u64>,
pub compute_unit_limit: Option<u32>,
pub compute_unit_price_micro_lamports: Option<u64>,
pub priority_fee_lamports: Option<u64>,
pub tip_payments_confirmed: bool,
pub tip_lamports: u64,
pub tip_payments: Vec<TipPayment>,
}Fields§
§transaction_fee_lamports: Option<u64>Authoritative transaction fee from status metadata, including priority fee.
total_fee_and_tip_lamports: Option<u64>Sum of transaction fee and recognized relay tips.
compute_units_consumed: Option<u64>§compute_unit_limit: Option<u32>§compute_unit_price_micro_lamports: Option<u64>§priority_fee_lamports: Option<u64>Requested priority fee, rounded up with Solana runtime semantics.
tip_payments_confirmed: booltrue when status metadata confirms the transaction succeeded.
tip_lamports: u64§tip_payments: Vec<TipPayment>Implementations§
Source§impl TransactionCost
impl TransactionCost
Sourcepub fn tip_lamports_for(&self, provider: SwqosProvider) -> u64
pub fn tip_lamports_for(&self, provider: SwqosProvider) -> u64
Returns the total tip paid to a specific provider.
Trait Implementations§
Source§impl Clone for TransactionCost
impl Clone for TransactionCost
Source§fn clone(&self) -> TransactionCost
fn clone(&self) -> TransactionCost
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 Debug for TransactionCost
impl Debug for TransactionCost
Source§impl Default for TransactionCost
impl Default for TransactionCost
Source§fn default() -> TransactionCost
fn default() -> TransactionCost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransactionCost
impl<'de> Deserialize<'de> for TransactionCost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransactionCost
Source§impl PartialEq for TransactionCost
impl PartialEq for TransactionCost
Source§impl Serialize for TransactionCost
impl Serialize for TransactionCost
impl StructuralPartialEq for TransactionCost
Auto Trait Implementations§
impl Freeze for TransactionCost
impl RefUnwindSafe for TransactionCost
impl Send for TransactionCost
impl Sync for TransactionCost
impl Unpin for TransactionCost
impl UnsafeUnpin for TransactionCost
impl UnwindSafe for TransactionCost
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request