[][src]Struct near_runtime_fees::Fee

pub struct Fee {
    pub send_sir: Gas,
    pub send_not_sir: Gas,
    pub execution: Gas,
}

Costs associated with an object that can only be sent over the network (and executed by the receiver). NOTE: send_sir or send_not_sir fees are usually burned when the item is being created. And execution fee is burned when the item is being executed.

Fields

send_sir: Gas

Fee for sending an object from the sender to itself, guaranteeing that it does not leave the shard.

send_not_sir: Gas

Fee for sending an object potentially across the shards.

execution: Gas

Fee for executing the object.

Implementations

impl Fee[src]

pub fn send_fee(&self, sir: bool) -> Gas[src]

pub fn exec_fee(&self) -> Gas[src]

Trait Implementations

impl Clone for Fee[src]

impl Debug for Fee[src]

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

impl Eq for Fee[src]

impl Hash for Fee[src]

impl PartialEq<Fee> for Fee[src]

impl Serialize for Fee[src]

impl StructuralEq for Fee[src]

impl StructuralPartialEq for Fee[src]

Auto Trait Implementations

impl RefUnwindSafe for Fee

impl Send for Fee

impl Sync for Fee

impl Unpin for Fee

impl UnwindSafe for Fee

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> 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.