Struct databento::historical::timeseries::GetRangeParams
source · pub struct GetRangeParams {
pub dataset: String,
pub symbols: Symbols,
pub schema: Schema,
pub date_time_range: DateTimeRange,
pub stype_in: SType,
pub stype_out: SType,
pub limit: Option<NonZeroU64>,
pub upgrade_policy: VersionUpgradePolicy,
}
historical
only.Expand description
The parameters for TimeseriesClient::get_range()
. Use
GetRangeParams::builder()
to get a builder type with all the preset defaults.
Fields§
§dataset: String
The dataset code.
symbols: Symbols
The symbols to filter for.
schema: Schema
The data record schema.
date_time_range: DateTimeRange
The request time range.
stype_in: SType
The symbology type of the input symbols
. Defaults to
RawSymbol
.
stype_out: SType
The symbology type of the output symbols
. Defaults to
InstrumentId
.
limit: Option<NonZeroU64>
The optional maximum number of records to return. Defaults to no limit.
upgrade_policy: VersionUpgradePolicy
How to decode DBN from prior versions. Defaults to upgrade.
Implementations§
source§impl GetRangeParams
impl GetRangeParams
sourcepub fn builder() -> GetRangeParamsBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> GetRangeParamsBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building GetRangeParams
.
On the builder, call .dataset(...)
, .symbols(...)
, .schema(...)
, .date_time_range(...)
, .stype_in(...)
(optional), .stype_out(...)
(optional), .limit(...)
(optional), .upgrade_policy(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetRangeParams
.
source§impl GetRangeParams
impl GetRangeParams
sourcepub fn with_path(self, path: impl Into<PathBuf>) -> GetRangeToFileParams
pub fn with_path(self, path: impl Into<PathBuf>) -> GetRangeToFileParams
Converts these parameters into a request that will be persisted to a file
at path
. Used in conjunction with `TimeseriesClient::get_range_to_file()``.
Trait Implementations§
source§impl Clone for GetRangeParams
impl Clone for GetRangeParams
source§fn clone(&self) -> GetRangeParams
fn clone(&self) -> GetRangeParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRangeParams
impl Debug for GetRangeParams
source§impl From<GetRangeToFileParams> for GetRangeParams
impl From<GetRangeToFileParams> for GetRangeParams
source§fn from(value: GetRangeToFileParams) -> Self
fn from(value: GetRangeToFileParams) -> Self
source§impl PartialEq for GetRangeParams
impl PartialEq for GetRangeParams
impl Eq for GetRangeParams
impl StructuralPartialEq for GetRangeParams
Auto Trait Implementations§
impl Freeze for GetRangeParams
impl RefUnwindSafe for GetRangeParams
impl Send for GetRangeParams
impl Sync for GetRangeParams
impl Unpin for GetRangeParams
impl UnwindSafe for GetRangeParams
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.