pub struct BarSpecificationBuilder { /* private fields */ }
Expand description
Builder for BarSpecification
.
Implementations§
Source§impl BarSpecificationBuilder
impl BarSpecificationBuilder
Sourcepub fn step(&mut self, value: usize) -> &mut Self
pub fn step(&mut self, value: usize) -> &mut Self
The step for binning samples for bar aggregation.
Sourcepub fn aggregation(&mut self, value: BarAggregation) -> &mut Self
pub fn aggregation(&mut self, value: BarAggregation) -> &mut Self
The type of bar aggregation.
Sourcepub fn price_type(&mut self, value: PriceType) -> &mut Self
pub fn price_type(&mut self, value: PriceType) -> &mut Self
The price type to use for aggregation.
Sourcepub fn build(&self) -> Result<BarSpecification, BarSpecificationBuilderError>
pub fn build(&self) -> Result<BarSpecification, BarSpecificationBuilderError>
Trait Implementations§
Source§impl Clone for BarSpecificationBuilder
impl Clone for BarSpecificationBuilder
Source§fn clone(&self) -> BarSpecificationBuilder
fn clone(&self) -> BarSpecificationBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for BarSpecificationBuilder
impl RefUnwindSafe for BarSpecificationBuilder
impl Send for BarSpecificationBuilder
impl Sync for BarSpecificationBuilder
impl Unpin for BarSpecificationBuilder
impl UnwindSafe for BarSpecificationBuilder
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