pub struct NumericOutcomeContractDescriptor {
pub num_digits: u16,
pub payout_function: PayoutFunction,
pub rounding_intervals: RoundingIntervals,
}Expand description
Information about outcomes and payouts for a contract based on numerical outcome event.
Fields§
§num_digits: u16The number of digits used by the oracle with smallest number of digits.
payout_function: PayoutFunctionThe function representing the payout depending on the outcomes.
rounding_intervals: RoundingIntervalsThe rounding intervals to be applied to the payouts.
Trait Implementations§
Source§impl Clone for NumericOutcomeContractDescriptor
impl Clone for NumericOutcomeContractDescriptor
Source§fn clone(&self) -> NumericOutcomeContractDescriptor
fn clone(&self) -> NumericOutcomeContractDescriptor
Returns a duplicate 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 PartialEq for NumericOutcomeContractDescriptor
impl PartialEq for NumericOutcomeContractDescriptor
Source§fn eq(&self, other: &NumericOutcomeContractDescriptor) -> bool
fn eq(&self, other: &NumericOutcomeContractDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Writeable for NumericOutcomeContractDescriptor
impl Writeable for NumericOutcomeContractDescriptor
impl StructuralPartialEq for NumericOutcomeContractDescriptor
Auto Trait Implementations§
impl Freeze for NumericOutcomeContractDescriptor
impl RefUnwindSafe for NumericOutcomeContractDescriptor
impl Send for NumericOutcomeContractDescriptor
impl Sync for NumericOutcomeContractDescriptor
impl Unpin for NumericOutcomeContractDescriptor
impl UnwindSafe for NumericOutcomeContractDescriptor
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