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\n by the receiver).\n NOTE: `send_sir` or `send_not_sir` fees are usually burned when the item is being created.\n And `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\n the shard.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}Fields§
§execution: u64Fee for executing the object.
send_not_sir: u64Fee for sending an object potentially across the shards.
send_sir: u64Fee 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<Fee, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Fee, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Fee
impl Serialize for Fee
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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