pub struct DataReceiptCreationConfigView {
pub base_cost: Fee,
pub cost_per_byte: Fee,
}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§
source§impl Clone for DataReceiptCreationConfigView
impl Clone for DataReceiptCreationConfigView
source§fn clone(&self) -> DataReceiptCreationConfigView
fn clone(&self) -> DataReceiptCreationConfigView
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'de> Deserialize<'de> for DataReceiptCreationConfigView
impl<'de> Deserialize<'de> for DataReceiptCreationConfigView
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for DataReceiptCreationConfigView
impl Hash for DataReceiptCreationConfigView
source§impl PartialEq for DataReceiptCreationConfigView
impl PartialEq for DataReceiptCreationConfigView
source§fn eq(&self, other: &DataReceiptCreationConfigView) -> bool
fn eq(&self, other: &DataReceiptCreationConfigView) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DataReceiptCreationConfigView
impl StructuralPartialEq for DataReceiptCreationConfigView
Auto Trait Implementations§
impl Freeze for DataReceiptCreationConfigView
impl RefUnwindSafe for DataReceiptCreationConfigView
impl Send for DataReceiptCreationConfigView
impl Sync for DataReceiptCreationConfigView
impl Unpin for DataReceiptCreationConfigView
impl UnwindSafe for DataReceiptCreationConfigView
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.