pub struct PerformanceRange {
pub query_type: i32,
pub currency: String,
pub start_date: String,
pub end_date: String,
pub time_location: String,
pub price_context: Option<PerformancePriceContext>,
}Fields§
§query_type: i32§currency: String§start_date: String§end_date: String§time_location: String§price_context: Option<PerformancePriceContext>Optional on wire for presence preservation; runtime-required.
Implementations§
Source§impl PerformanceRange
impl PerformanceRange
Sourcepub fn query_type(&self) -> PerformanceQueryType
pub fn query_type(&self) -> PerformanceQueryType
Returns the enum value of query_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_query_type(&mut self, value: PerformanceQueryType)
pub fn set_query_type(&mut self, value: PerformanceQueryType)
Sets query_type to the provided enum value.
Trait Implementations§
Source§impl Clone for PerformanceRange
impl Clone for PerformanceRange
Source§fn clone(&self) -> PerformanceRange
fn clone(&self) -> PerformanceRange
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 PerformanceRange
impl Debug for PerformanceRange
Source§impl Default for PerformanceRange
impl Default for PerformanceRange
Source§impl<'de> Deserialize<'de> for PerformanceRangewhere
PerformanceRange: Default,
impl<'de> Deserialize<'de> for PerformanceRangewhere
PerformanceRange: 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 PerformanceRange
Source§impl Hash for PerformanceRange
impl Hash for PerformanceRange
Source§impl Message for PerformanceRange
impl Message for PerformanceRange
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 PerformanceRange
impl PartialEq for PerformanceRange
Source§fn eq(&self, other: &PerformanceRange) -> bool
fn eq(&self, other: &PerformanceRange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PerformanceRange
impl Serialize for PerformanceRange
impl StructuralPartialEq for PerformanceRange
Auto Trait Implementations§
impl Freeze for PerformanceRange
impl RefUnwindSafe for PerformanceRange
impl Send for PerformanceRange
impl Sync for PerformanceRange
impl Unpin for PerformanceRange
impl UnsafeUnpin for PerformanceRange
impl UnwindSafe for PerformanceRange
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