pub struct PayoutFunction {
pub payout_function_pieces: Vec<PayoutFunctionPiece>,
pub last_endpoint: PayoutPoint,
}Expand description
Function representing the payouts based on the outcomes of a numerical contract.
Fields§
§payout_function_pieces: Vec<PayoutFunctionPiece>The pieces that make up the function.
last_endpoint: PayoutPointThe right most point of the function.
Trait Implementations§
Source§impl Clone for PayoutFunction
impl Clone for PayoutFunction
Source§fn clone(&self) -> PayoutFunction
fn clone(&self) -> PayoutFunction
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 Debug for PayoutFunction
impl Debug for PayoutFunction
Source§impl PartialEq for PayoutFunction
impl PartialEq for PayoutFunction
Source§impl Readable for PayoutFunction
impl Readable for PayoutFunction
Source§impl Writeable for PayoutFunction
impl Writeable for PayoutFunction
impl StructuralPartialEq for PayoutFunction
Auto Trait Implementations§
impl Freeze for PayoutFunction
impl RefUnwindSafe for PayoutFunction
impl Send for PayoutFunction
impl Sync for PayoutFunction
impl Unpin for PayoutFunction
impl UnwindSafe for PayoutFunction
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