Struct solana_program::fee_calculator::FeeCalculator[][src]

pub struct FeeCalculator {
    pub lamports_per_signature: u64,
}

Fields

lamports_per_signature: u64

Implementations

impl FeeCalculator[src]

pub fn new(lamports_per_signature: u64) -> Self[src]

pub fn calculate_fee(&self, message: &Message) -> u64[src]

pub fn calculate_fee_with_config(
    &self,
    message: &Message,
    fee_config: &FeeConfig
) -> u64
[src]

Trait Implementations

impl Clone for FeeCalculator[src]

impl Debug for FeeCalculator[src]

impl Default for FeeCalculator[src]

impl<'de> Deserialize<'de> for FeeCalculator[src]

impl Eq for FeeCalculator[src]

impl PartialEq<FeeCalculator> for FeeCalculator[src]

impl Serialize for FeeCalculator[src]

impl StructuralEq for FeeCalculator[src]

impl StructuralPartialEq for FeeCalculator[src]

Auto Trait Implementations

impl RefUnwindSafe for FeeCalculator

impl Send for FeeCalculator

impl Sync for FeeCalculator

impl Unpin for FeeCalculator

impl UnwindSafe for FeeCalculator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]