pub struct Forecast {
pub rise_prob: Option<f64>,
pub rise_upper_bound: Option<f64>,
pub rise_lower_bound: Option<f64>,
pub price_upper_bound: Option<f64>,
pub price_lower_bound: Option<f64>,
pub is_risk: Option<bool>,
}Fields§
§rise_prob: Option<f64>§rise_upper_bound: Option<f64>§rise_lower_bound: Option<f64>§price_upper_bound: Option<f64>§price_lower_bound: Option<f64>§is_risk: Option<bool>Implementations§
Source§impl Forecast
impl Forecast
Sourcepub fn rise_prob(&self) -> f64
pub fn rise_prob(&self) -> f64
Returns the value of rise_prob, or the default value if rise_prob is unset.
Sourcepub fn rise_upper_bound(&self) -> f64
pub fn rise_upper_bound(&self) -> f64
Returns the value of rise_upper_bound, or the default value if rise_upper_bound is unset.
Sourcepub fn rise_lower_bound(&self) -> f64
pub fn rise_lower_bound(&self) -> f64
Returns the value of rise_lower_bound, or the default value if rise_lower_bound is unset.
Sourcepub fn price_upper_bound(&self) -> f64
pub fn price_upper_bound(&self) -> f64
Returns the value of price_upper_bound, or the default value if price_upper_bound is unset.
Sourcepub fn price_lower_bound(&self) -> f64
pub fn price_lower_bound(&self) -> f64
Returns the value of price_lower_bound, or the default value if price_lower_bound is unset.
Trait Implementations§
impl Copy for Forecast
Source§impl<'de> Deserialize<'de> for Forecast
impl<'de> Deserialize<'de> for Forecast
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Forecast
impl Message for Forecast
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for Forecast
Auto Trait Implementations§
impl Freeze for Forecast
impl RefUnwindSafe for Forecast
impl Send for Forecast
impl Sync for Forecast
impl Unpin for Forecast
impl UnsafeUnpin for Forecast
impl UnwindSafe for Forecast
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