[][src]Struct near_runtime_fees::DataReceiptCreationConfig

pub struct DataReceiptCreationConfig {
    pub base_cost: Fee,
    pub cost_per_byte: Fee,
}

Describes the cost of creating a data receipt, DataReceipt.

Fields

base_cost: Fee

Base cost of creating a data receipt. Both send and exec costs are burned when a new receipt has input dependencies. The gas is charged for each input dependency. The dependencies are specified when a receipt is created using promise_then and promise_batch_then. NOTE: Any receipt with output dependencies will produce data receipts. Even if it fails. Even if the last action is not a function call (in case of success it will return empty value).

cost_per_byte: Fee

Additional cost per byte sent. Both send and exec costs are burned when a function call finishes execution and returns N bytes of data to every output dependency. For each output dependency the cost is (send(sir) + exec()) * N.

Trait Implementations

impl Clone for DataReceiptCreationConfig[src]

impl Debug for DataReceiptCreationConfig[src]

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

impl Eq for DataReceiptCreationConfig[src]

impl Hash for DataReceiptCreationConfig[src]

impl PartialEq<DataReceiptCreationConfig> for DataReceiptCreationConfig[src]

impl Serialize for DataReceiptCreationConfig[src]

impl StructuralEq for DataReceiptCreationConfig[src]

impl StructuralPartialEq for DataReceiptCreationConfig[src]

Auto Trait Implementations

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.