Struct near_parameters::view::ActionCreationConfigView
source · pub struct ActionCreationConfigView {
pub create_account_cost: Fee,
pub deploy_contract_cost: Fee,
pub deploy_contract_cost_per_byte: Fee,
pub function_call_cost: Fee,
pub function_call_cost_per_byte: Fee,
pub transfer_cost: Fee,
pub stake_cost: Fee,
pub add_key_cost: AccessKeyCreationConfigView,
pub delete_key_cost: Fee,
pub delete_account_cost: Fee,
pub delegate_cost: Fee,
}
Expand description
Describes the cost of creating a specific action, Action
. Includes all variants.
Fields§
§create_account_cost: Fee
Base cost of creating an account.
deploy_contract_cost: Fee
Base cost of deploying a contract.
deploy_contract_cost_per_byte: Fee
Cost per byte of deploying a contract.
function_call_cost: Fee
Base cost of calling a function.
function_call_cost_per_byte: Fee
Cost per byte of method name and arguments of calling a function.
transfer_cost: Fee
Base cost of making a transfer.
stake_cost: Fee
Base cost of staking.
add_key_cost: AccessKeyCreationConfigView
Base cost of adding a key.
delete_key_cost: Fee
Base cost of deleting a key.
delete_account_cost: Fee
Base cost of deleting an account.
delegate_cost: Fee
Base cost for processing a delegate action.
This is on top of the costs for the actions inside the delegate action.
Trait Implementations§
source§impl Clone for ActionCreationConfigView
impl Clone for ActionCreationConfigView
source§fn clone(&self) -> ActionCreationConfigView
fn clone(&self) -> ActionCreationConfigView
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 Debug for ActionCreationConfigView
impl Debug for ActionCreationConfigView
source§impl<'de> Deserialize<'de> for ActionCreationConfigView
impl<'de> Deserialize<'de> for ActionCreationConfigView
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 ActionCreationConfigView
impl Hash for ActionCreationConfigView
source§impl PartialEq for ActionCreationConfigView
impl PartialEq for ActionCreationConfigView
source§fn eq(&self, other: &ActionCreationConfigView) -> bool
fn eq(&self, other: &ActionCreationConfigView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ActionCreationConfigView
impl Serialize for ActionCreationConfigView
impl Eq for ActionCreationConfigView
impl StructuralEq for ActionCreationConfigView
impl StructuralPartialEq for ActionCreationConfigView
Auto Trait Implementations§
impl RefUnwindSafe for ActionCreationConfigView
impl Send for ActionCreationConfigView
impl Sync for ActionCreationConfigView
impl Unpin for ActionCreationConfigView
impl UnwindSafe for ActionCreationConfigView
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.