pub struct ChartRangeInfoRecord {
pub end: u64,
pub period: TimePeriod,
pub start: u64,
pub symbol: String,
pub ticks: Option<i64>,
}
Expand description
Structure representing chart range information
Fields§
§end: u64
End of chart block (rounded down to the nearest interval and excluding)
period: TimePeriod
Period code
start: u64
Start of chart block (rounded down to the nearest interval and excluding)
symbol: String
Symbol
ticks: Option<i64>
Number of ticks needed, this field is optional
Implementations§
Source§impl ChartRangeInfoRecord
impl ChartRangeInfoRecord
Sourcepub fn with_period(self, value: impl Into<TimePeriod>) -> Self
pub fn with_period(self, value: impl Into<TimePeriod>) -> Self
Sets the period
field of this struct.
Sourcepub fn with_start(self, value: impl Into<u64>) -> Self
pub fn with_start(self, value: impl Into<u64>) -> Self
Sets the start
field of this struct.
Sourcepub fn with_symbol(self, value: impl Into<String>) -> Self
pub fn with_symbol(self, value: impl Into<String>) -> Self
Sets the symbol
field of this struct.
Sourcepub fn with_ticks(self, value: impl Into<i64>) -> Self
pub fn with_ticks(self, value: impl Into<i64>) -> Self
Sets the ticks
field of this struct.
Trait Implementations§
Source§impl Clone for ChartRangeInfoRecord
impl Clone for ChartRangeInfoRecord
Source§fn clone(&self) -> ChartRangeInfoRecord
fn clone(&self) -> ChartRangeInfoRecord
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 ChartRangeInfoRecord
impl Debug for ChartRangeInfoRecord
Source§impl Default for ChartRangeInfoRecord
impl Default for ChartRangeInfoRecord
Source§fn default() -> ChartRangeInfoRecord
fn default() -> ChartRangeInfoRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChartRangeInfoRecord
impl<'de> Deserialize<'de> for ChartRangeInfoRecord
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 ChartRangeInfoRecord
impl PartialEq for ChartRangeInfoRecord
Source§impl Serialize for ChartRangeInfoRecord
impl Serialize for ChartRangeInfoRecord
impl StructuralPartialEq for ChartRangeInfoRecord
Auto Trait Implementations§
impl Freeze for ChartRangeInfoRecord
impl RefUnwindSafe for ChartRangeInfoRecord
impl Send for ChartRangeInfoRecord
impl Sync for ChartRangeInfoRecord
impl Unpin for ChartRangeInfoRecord
impl UnwindSafe for ChartRangeInfoRecord
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