pub enum Denominator {
Scalar(f64),
AggregatorPubkey(String),
Job(OracleJob),
Big(String),
}
Variants§
Scalar(f64)
/ Specifies a basic scalar denominator to divide by.
AggregatorPubkey(String)
/ Specifies another aggregator resut to divide by.
Job(OracleJob)
/ A job whose result is computed before dividing our numerical input by that result.
Big(String)
/ A stringified big.js. Accepts variable expansion syntax.
Implementations§
source§impl Denominator
impl Denominator
sourcepub fn merge<B>(
field: &mut Option<Denominator>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Denominator>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for Denominator
impl Clone for Denominator
source§fn clone(&self) -> Denominator
fn clone(&self) -> Denominator
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 Denominator
impl Debug for Denominator
source§impl PartialEq for Denominator
impl PartialEq for Denominator
source§fn eq(&self, other: &Denominator) -> bool
fn eq(&self, other: &Denominator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Denominator
Auto Trait Implementations§
impl RefUnwindSafe for Denominator
impl Send for Denominator
impl Sync for Denominator
impl Unpin for Denominator
impl UnwindSafe for Denominator
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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