pub struct ChartLastInfoRecord {
pub period: TimePeriod,
pub start: u64,
pub symbol: String,
}Expand description
Specification and constraints for the requested data
Fields§
§period: TimePeriodPeriod code
start: u64Start of chart block (rounded down to the nearest interval and excluding)
symbol: StringSymbol
Implementations§
Source§impl ChartLastInfoRecord
impl ChartLastInfoRecord
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.
Trait Implementations§
Source§impl Clone for ChartLastInfoRecord
impl Clone for ChartLastInfoRecord
Source§fn clone(&self) -> ChartLastInfoRecord
fn clone(&self) -> ChartLastInfoRecord
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 ChartLastInfoRecord
impl Debug for ChartLastInfoRecord
Source§impl Default for ChartLastInfoRecord
impl Default for ChartLastInfoRecord
Source§fn default() -> ChartLastInfoRecord
fn default() -> ChartLastInfoRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChartLastInfoRecord
impl<'de> Deserialize<'de> for ChartLastInfoRecord
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 ChartLastInfoRecord
impl PartialEq for ChartLastInfoRecord
Source§impl Serialize for ChartLastInfoRecord
impl Serialize for ChartLastInfoRecord
impl StructuralPartialEq for ChartLastInfoRecord
Auto Trait Implementations§
impl Freeze for ChartLastInfoRecord
impl RefUnwindSafe for ChartLastInfoRecord
impl Send for ChartLastInfoRecord
impl Sync for ChartLastInfoRecord
impl Unpin for ChartLastInfoRecord
impl UnsafeUnpin for ChartLastInfoRecord
impl UnwindSafe for ChartLastInfoRecord
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