pub struct MixNodeCostParams {
pub profit_margin_percent: Percent,
pub interval_operating_cost: Coin,
}
Fields§
§profit_margin_percent: Percent
§interval_operating_cost: Coin
Operating cost of the associated mixnode per the entire interval.
Implementations§
source§impl MixNodeCostParams
impl MixNodeCostParams
pub fn to_inline_json(&self) -> String
source§impl MixNodeCostParams
impl MixNodeCostParams
pub fn epoch_operating_cost(&self, epochs_in_interval: u32) -> Decimal
Trait Implementations§
source§impl Clone for MixNodeCostParams
impl Clone for MixNodeCostParams
source§fn clone(&self) -> MixNodeCostParams
fn clone(&self) -> MixNodeCostParams
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 MixNodeCostParams
impl Debug for MixNodeCostParams
source§impl<'de> Deserialize<'de> for MixNodeCostParams
impl<'de> Deserialize<'de> for MixNodeCostParams
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 JsonSchema for MixNodeCostParams
impl JsonSchema for MixNodeCostParams
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<MixNodeCostParams> for MixNodeCostParams
impl PartialEq<MixNodeCostParams> for MixNodeCostParams
source§fn eq(&self, other: &MixNodeCostParams) -> bool
fn eq(&self, other: &MixNodeCostParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MixNodeCostParams
impl Serialize for MixNodeCostParams
impl StructuralPartialEq for MixNodeCostParams
Auto Trait Implementations§
impl RefUnwindSafe for MixNodeCostParams
impl Send for MixNodeCostParams
impl Sync for MixNodeCostParams
impl Unpin for MixNodeCostParams
impl UnwindSafe for MixNodeCostParams
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