pub struct DifferenceParams {
pub max_error_exp: usize,
pub min_support_exp: usize,
pub maximize_coverage: bool,
}
Expand description
Information about the allowed deviation in outcome value between the oracles.
Fields§
§max_error_exp: usize
The maximum error above which the contract should failed to close. Note that this value represents a power of two.
min_support_exp: usize
The minimum error deviation under which the contract should be guaranteed to be closeable.
maximize_coverage: bool
Whether to maximize the coverage of the [min;max] interval to increase the probability of the contract being closeable within it.
Trait Implementations§
Source§impl Clone for DifferenceParams
impl Clone for DifferenceParams
Source§fn clone(&self) -> DifferenceParams
fn clone(&self) -> DifferenceParams
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 DifferenceParams
impl Debug for DifferenceParams
Source§impl From<&DifferenceParams> for OracleParams
impl From<&DifferenceParams> for OracleParams
Source§fn from(input: &DifferenceParams) -> OracleParams
fn from(input: &DifferenceParams) -> OracleParams
Converts to this type from the input type.
Source§impl From<&OracleParams> for DifferenceParams
impl From<&OracleParams> for DifferenceParams
Source§fn from(input: &OracleParams) -> DifferenceParams
fn from(input: &OracleParams) -> DifferenceParams
Converts to this type from the input type.
Source§impl Readable for DifferenceParams
impl Readable for DifferenceParams
Source§impl Writeable for DifferenceParams
impl Writeable for DifferenceParams
Auto Trait Implementations§
impl Freeze for DifferenceParams
impl RefUnwindSafe for DifferenceParams
impl Send for DifferenceParams
impl Sync for DifferenceParams
impl Unpin for DifferenceParams
impl UnwindSafe for DifferenceParams
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