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 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 Denominator
impl Debug for Denominator
Source§impl PartialEq for Denominator
impl PartialEq for Denominator
impl StructuralPartialEq for Denominator
Auto Trait Implementations§
impl Freeze for Denominator
impl RefUnwindSafe for Denominator
impl Send for Denominator
impl Sync for Denominator
impl Unpin for Denominator
impl UnwindSafe for Denominator
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