Struct solana_sdk::fee_calculator::FeeCalculator [−][src]
Fields
lamports_per_signature: u64
Implementations
impl FeeCalculator
[src]
pub fn new(lamports_per_signature: u64) -> FeeCalculator
[src]
pub fn calculate_fee(&self, message: &Message) -> u64
[src]
pub fn calculate_fee_with_config(
&self,
message: &Message,
fee_config: &FeeConfig
) -> u64
[src]
&self,
message: &Message,
fee_config: &FeeConfig
) -> u64
Trait Implementations
impl Clone for FeeCalculator
[src]
pub fn clone(&self) -> FeeCalculator
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FeeCalculator
[src]
impl Default for FeeCalculator
[src]
pub fn default() -> FeeCalculator
[src]
impl<'de> Deserialize<'de> for FeeCalculator
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FeeCalculator, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<FeeCalculator, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for FeeCalculator
[src]
impl PartialEq<FeeCalculator> for FeeCalculator
[src]
pub fn eq(&self, other: &FeeCalculator) -> bool
[src]
pub fn ne(&self, other: &FeeCalculator) -> bool
[src]
impl Serialize for FeeCalculator
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,