pub enum Subtraction {
Scalar(f64),
AggregatorPubkey(String),
Job(OracleJob),
Big(String),
}
Variants§
Scalar(f64)
/ Specifies a scalar to subtract by.
AggregatorPubkey(String)
/ Specifies an aggregator to subtract by.
Job(OracleJob)
/ A job whose result is computed before subtracting our numerical input by that result.
Big(String)
/ A stringified big.js. Accepts variable expansion syntax.
Implementations§
source§impl Subtraction
impl Subtraction
sourcepub fn merge<B>(
field: &mut Option<Subtraction>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Subtraction>,
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 Subtraction
impl Clone for Subtraction
source§fn clone(&self) -> Subtraction
fn clone(&self) -> Subtraction
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 Subtraction
impl Debug for Subtraction
source§impl PartialEq for Subtraction
impl PartialEq for Subtraction
source§fn eq(&self, other: &Subtraction) -> bool
fn eq(&self, other: &Subtraction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Subtraction
Auto Trait Implementations§
impl RefUnwindSafe for Subtraction
impl Send for Subtraction
impl Sync for Subtraction
impl Unpin for Subtraction
impl UnwindSafe for Subtraction
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