pub struct OracleParams {
pub max_error_exp: u16,
pub min_fail_exp: u16,
pub maximize_coverage: bool,
}
Expand description
Parameter describing allowed differences between oracles in numerical outcome contracts.
Fields§
§max_error_exp: u16
The maximum allowed difference between oracle expressed as a power of 2.
min_fail_exp: u16
The minimum allowed difference that should be supported by the contract expressed as a power of 2.
maximize_coverage: bool
Whether to maximize coverage of the interval between Self::max_error_exp
and Self::min_fail_exp
.
Trait Implementations§
Source§impl Clone for OracleParams
impl Clone for OracleParams
Source§fn clone(&self) -> OracleParams
fn clone(&self) -> OracleParams
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 OracleParams
impl Debug for OracleParams
Source§impl PartialEq for OracleParams
impl PartialEq for OracleParams
Source§impl Readable for OracleParams
impl Readable for OracleParams
Source§impl Writeable for OracleParams
impl Writeable for OracleParams
impl Eq for OracleParams
impl StructuralPartialEq for OracleParams
Auto Trait Implementations§
impl Freeze for OracleParams
impl RefUnwindSafe for OracleParams
impl Send for OracleParams
impl Sync for OracleParams
impl Unpin for OracleParams
impl UnwindSafe for OracleParams
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