pub struct CalendarRecord {
pub country: String,
pub current: String,
pub forecast: String,
pub impact: ImpactLevel,
pub period: String,
pub previous: String,
pub time: u64,
pub title: String,
}
Expand description
Structure representing details of a calendar record
Fields§
§country: String
Two-letter country code
current: String
Market value (current), empty before time of release of this value (time from “time” record)
forecast: String
Forecasted value
impact: ImpactLevel
Impact on market
period: String
Information period
previous: String
Value from previous information release
time: u64
Time, when the information will be released (in this time empty “current” value should be changed with exact released value)
title: String
Name of the indicator for which values will be released
Implementations§
Source§impl CalendarRecord
impl CalendarRecord
Sourcepub fn with_country(self, value: impl Into<String>) -> Self
pub fn with_country(self, value: impl Into<String>) -> Self
Sets the country
field of this struct.
Sourcepub fn with_current(self, value: impl Into<String>) -> Self
pub fn with_current(self, value: impl Into<String>) -> Self
Sets the current
field of this struct.
Sourcepub fn with_forecast(self, value: impl Into<String>) -> Self
pub fn with_forecast(self, value: impl Into<String>) -> Self
Sets the forecast
field of this struct.
Sourcepub fn with_impact(self, value: impl Into<ImpactLevel>) -> Self
pub fn with_impact(self, value: impl Into<ImpactLevel>) -> Self
Sets the impact
field of this struct.
Sourcepub fn with_period(self, value: impl Into<String>) -> Self
pub fn with_period(self, value: impl Into<String>) -> Self
Sets the period
field of this struct.
Sourcepub fn with_previous(self, value: impl Into<String>) -> Self
pub fn with_previous(self, value: impl Into<String>) -> Self
Sets the previous
field of this struct.
Sourcepub fn with_title(self, value: impl Into<String>) -> Self
pub fn with_title(self, value: impl Into<String>) -> Self
Sets the title
field of this struct.
Trait Implementations§
Source§impl Clone for CalendarRecord
impl Clone for CalendarRecord
Source§fn clone(&self) -> CalendarRecord
fn clone(&self) -> CalendarRecord
Returns a duplicate 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 CalendarRecord
impl Debug for CalendarRecord
Source§impl Default for CalendarRecord
impl Default for CalendarRecord
Source§fn default() -> CalendarRecord
fn default() -> CalendarRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CalendarRecord
impl<'de> Deserialize<'de> for CalendarRecord
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 PartialEq for CalendarRecord
impl PartialEq for CalendarRecord
Source§impl Serialize for CalendarRecord
impl Serialize for CalendarRecord
impl StructuralPartialEq for CalendarRecord
Auto Trait Implementations§
impl Freeze for CalendarRecord
impl RefUnwindSafe for CalendarRecord
impl Send for CalendarRecord
impl Sync for CalendarRecord
impl Unpin for CalendarRecord
impl UnwindSafe for CalendarRecord
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