pub struct DatabentoDataClientConfigBuilder { /* private fields */ }
Expand description
Builder for DatabentoDataClientConfig
.
Implementations§
Source§impl DatabentoDataClientConfigBuilder
impl DatabentoDataClientConfigBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new DatabentoDataClientConfigBuilder
.
Sourcepub fn publishers_filepath(self, filepath: PathBuf) -> Self
pub fn publishers_filepath(self, filepath: PathBuf) -> Self
Sets the publishers filepath.
Sourcepub const fn use_exchange_as_venue(self, use_exchange: bool) -> Self
pub const fn use_exchange_as_venue(self, use_exchange: bool) -> Self
Sets whether to use exchange as venue.
Sourcepub const fn bars_timestamp_on_close(self, timestamp_on_close: bool) -> Self
pub const fn bars_timestamp_on_close(self, timestamp_on_close: bool) -> Self
Sets whether to timestamp bars on close.
Sourcepub fn build(self) -> Result<DatabentoDataClientConfig>
pub fn build(self) -> Result<DatabentoDataClientConfig>
Trait Implementations§
Source§impl Default for DatabentoDataClientConfigBuilder
impl Default for DatabentoDataClientConfigBuilder
Source§fn default() -> DatabentoDataClientConfigBuilder
fn default() -> DatabentoDataClientConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DatabentoDataClientConfigBuilder
impl RefUnwindSafe for DatabentoDataClientConfigBuilder
impl Send for DatabentoDataClientConfigBuilder
impl Sync for DatabentoDataClientConfigBuilder
impl Unpin for DatabentoDataClientConfigBuilder
impl UnwindSafe for DatabentoDataClientConfigBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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