Struct near_primitives_core::runtime::fees::DataReceiptCreationConfig [−][src]
Describes the cost of creating a data receipt, DataReceipt.
Fields
base_cost: FeeBase 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: FeeAdditional 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]
fn clone(&self) -> DataReceiptCreationConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for DataReceiptCreationConfig[src]
impl<'de> Deserialize<'de> for DataReceiptCreationConfig[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for DataReceiptCreationConfig[src]
impl Hash for DataReceiptCreationConfig[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<DataReceiptCreationConfig> for DataReceiptCreationConfig[src]
fn eq(&self, other: &DataReceiptCreationConfig) -> bool[src]
fn ne(&self, other: &DataReceiptCreationConfig) -> bool[src]
impl Serialize for DataReceiptCreationConfig[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for DataReceiptCreationConfig[src]
impl StructuralPartialEq for DataReceiptCreationConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for DataReceiptCreationConfig[src]
impl Send for DataReceiptCreationConfig[src]
impl Sync for DataReceiptCreationConfig[src]
impl Unpin for DataReceiptCreationConfig[src]
impl UnwindSafe for DataReceiptCreationConfig[src]
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> Same<T> for T
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>,