pub struct ReturnNode {
pub timestamp: Option<i64>,
pub yield_value: Option<String>,
pub yield_ratio: Option<String>,
pub node_date: Option<String>,
}Fields§
§timestamp: Option<i64>§yield_value: Option<String>§yield_ratio: Option<String>§node_date: Option<String>Implementations§
Source§impl ReturnNode
impl ReturnNode
Sourcepub fn timestamp(&self) -> i64
pub fn timestamp(&self) -> i64
Returns the value of timestamp, or the default value if timestamp is unset.
Sourcepub fn yield_value(&self) -> &str
pub fn yield_value(&self) -> &str
Returns the value of yield_value, or the default value if yield_value is unset.
Sourcepub fn yield_ratio(&self) -> &str
pub fn yield_ratio(&self) -> &str
Returns the value of yield_ratio, or the default value if yield_ratio is unset.
Trait Implementations§
Source§impl Clone for ReturnNode
impl Clone for ReturnNode
Source§fn clone(&self) -> ReturnNode
fn clone(&self) -> ReturnNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReturnNode
impl Debug for ReturnNode
Source§impl Default for ReturnNode
impl Default for ReturnNode
Source§impl<'de> Deserialize<'de> for ReturnNodewhere
ReturnNode: Default,
impl<'de> Deserialize<'de> for ReturnNodewhere
ReturnNode: Default,
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
impl Eq for ReturnNode
Source§impl Hash for ReturnNode
impl Hash for ReturnNode
Source§impl Message for ReturnNode
impl Message for ReturnNode
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.Source§impl PartialEq for ReturnNode
impl PartialEq for ReturnNode
Source§fn eq(&self, other: &ReturnNode) -> bool
fn eq(&self, other: &ReturnNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReturnNode
impl Serialize for ReturnNode
impl StructuralPartialEq for ReturnNode
Auto Trait Implementations§
impl Freeze for ReturnNode
impl RefUnwindSafe for ReturnNode
impl Send for ReturnNode
impl Sync for ReturnNode
impl Unpin for ReturnNode
impl UnsafeUnpin for ReturnNode
impl UnwindSafe for ReturnNode
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