pub struct Fee {
pub execution: u64,
pub send_not_sir: u64,
pub send_sir: u64,
}
Expand description
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.
JSON schema
{
"description": "Costs associated with an object that can only be sent over the network (and executed\nby the receiver).\nNOTE: `send_sir` or `send_not_sir` fees are usually burned when the item is being created.\nAnd `execution` fee is burned when the item is being executed.",
"type": "object",
"required": [
"execution",
"send_not_sir",
"send_sir"
],
"properties": {
"execution": {
"description": "Fee for executing the object.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"send_not_sir": {
"description": "Fee for sending an object potentially across the shards.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"send_sir": {
"description": "Fee for sending an object from the sender to itself, guaranteeing that it does not leave\nthe shard.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
Fields§
§execution: u64
Fee for executing the object.
send_not_sir: u64
Fee for sending an object potentially across the shards.
send_sir: u64
Fee for sending an object from the sender to itself, guaranteeing that it does not leave the shard.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fee
impl<'de> Deserialize<'de> for Fee
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
Auto Trait Implementations§
impl Freeze for Fee
impl RefUnwindSafe for Fee
impl Send for Fee
impl Sync for Fee
impl Unpin for Fee
impl UnwindSafe for Fee
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