pub struct QuoteShowItem {
pub title: Option<String>,
pub value: Option<i64>,
pub precision: Option<u32>,
pub text: Option<String>,
pub content_type: Option<i32>,
pub color_text: Option<String>,
}Fields§
§title: Option<String>§value: Option<i64>§precision: Option<u32>§text: Option<String>§content_type: Option<i32>§color_text: Option<String>Implementations§
Source§impl QuoteShowItem
impl QuoteShowItem
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title, or the default value if title is unset.
Sourcepub fn precision(&self) -> u32
pub fn precision(&self) -> u32
Returns the value of precision, or the default value if precision is unset.
Sourcepub fn content_type(&self) -> i32
pub fn content_type(&self) -> i32
Returns the value of content_type, or the default value if content_type is unset.
Sourcepub fn color_text(&self) -> &str
pub fn color_text(&self) -> &str
Returns the value of color_text, or the default value if color_text is unset.
Trait Implementations§
Source§impl Clone for QuoteShowItem
impl Clone for QuoteShowItem
Source§fn clone(&self) -> QuoteShowItem
fn clone(&self) -> QuoteShowItem
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 QuoteShowItem
impl Debug for QuoteShowItem
Source§impl Default for QuoteShowItem
impl Default for QuoteShowItem
Source§impl<'de> Deserialize<'de> for QuoteShowItemwhere
QuoteShowItem: Default,
impl<'de> Deserialize<'de> for QuoteShowItemwhere
QuoteShowItem: 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 QuoteShowItem
Source§impl Hash for QuoteShowItem
impl Hash for QuoteShowItem
Source§impl Message for QuoteShowItem
impl Message for QuoteShowItem
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 QuoteShowItem
impl PartialEq for QuoteShowItem
Source§fn eq(&self, other: &QuoteShowItem) -> bool
fn eq(&self, other: &QuoteShowItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuoteShowItem
impl Serialize for QuoteShowItem
impl StructuralPartialEq for QuoteShowItem
Auto Trait Implementations§
impl Freeze for QuoteShowItem
impl RefUnwindSafe for QuoteShowItem
impl Send for QuoteShowItem
impl Sync for QuoteShowItem
impl Unpin for QuoteShowItem
impl UnsafeUnpin for QuoteShowItem
impl UnwindSafe for QuoteShowItem
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