pub struct RecentPricesRequest<'a> {
pub epic: &'a str,
pub resolution: Option<&'a str>,
pub from: Option<&'a str>,
pub to: Option<&'a str>,
pub max_points: Option<i32>,
pub page_size: Option<i32>,
pub page_number: Option<i32>,
}Expand description
Parameters for getting recent prices (API v3)
Fields§
§epic: &'a strInstrument epic
resolution: Option<&'a str>Optional price resolution (default: MINUTE)
from: Option<&'a str>Optional start date time (yyyy-MM-dd’T’HH:mm:ss)
to: Option<&'a str>Optional end date time (yyyy-MM-dd’T’HH:mm:ss)
max_points: Option<i32>Optional max number of price points (default: 10)
page_size: Option<i32>Optional page size (default: 20, disable paging = 0)
page_number: Option<i32>Optional page number (default: 1)
Implementations§
Source§impl<'a> RecentPricesRequest<'a>
impl<'a> RecentPricesRequest<'a>
Sourcepub fn with_resolution(self, resolution: &'a str) -> Self
pub fn with_resolution(self, resolution: &'a str) -> Self
Set the resolution
Sourcepub fn with_max_points(self, max_points: i32) -> Self
pub fn with_max_points(self, max_points: i32) -> Self
Set the max points
Sourcepub fn with_page_size(self, page_size: i32) -> Self
pub fn with_page_size(self, page_size: i32) -> Self
Set the page size
Sourcepub fn with_page_number(self, page_number: i32) -> Self
pub fn with_page_number(self, page_number: i32) -> Self
Set the page number
Trait Implementations§
Source§impl<'a> Clone for RecentPricesRequest<'a>
impl<'a> Clone for RecentPricesRequest<'a>
Source§fn clone(&self) -> RecentPricesRequest<'a>
fn clone(&self) -> RecentPricesRequest<'a>
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<'a> Debug for RecentPricesRequest<'a>
impl<'a> Debug for RecentPricesRequest<'a>
Source§impl<'a> Default for RecentPricesRequest<'a>
impl<'a> Default for RecentPricesRequest<'a>
Source§fn default() -> RecentPricesRequest<'a>
fn default() -> RecentPricesRequest<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for RecentPricesRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RecentPricesRequest<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for RecentPricesRequest<'a>
impl<'a> RefUnwindSafe for RecentPricesRequest<'a>
impl<'a> Send for RecentPricesRequest<'a>
impl<'a> Sync for RecentPricesRequest<'a>
impl<'a> Unpin for RecentPricesRequest<'a>
impl<'a> UnwindSafe for RecentPricesRequest<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more