pub struct SyntheticInstrumentBuilder { /* private fields */ }
Expand description
Builder for SyntheticInstrument
.
Implementations§
Source§impl SyntheticInstrumentBuilder
impl SyntheticInstrumentBuilder
pub fn id(&mut self, value: InstrumentId) -> &mut Self
pub fn price_precision(&mut self, value: u8) -> &mut Self
pub fn price_increment(&mut self, value: Price) -> &mut Self
pub fn components(&mut self, value: Vec<InstrumentId>) -> &mut Self
pub fn formula(&mut self, value: String) -> &mut Self
pub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
pub fn ts_init(&mut self, value: UnixNanos) -> &mut Self
pub fn context(&mut self, value: HashMapContext) -> &mut Self
pub fn variables(&mut self, value: Vec<String>) -> &mut Self
pub fn operator_tree(&mut self, value: Node) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<SyntheticInstrument, SyntheticInstrumentBuilderError>
pub fn build( &self, ) -> Result<SyntheticInstrument, SyntheticInstrumentBuilderError>
Trait Implementations§
Source§impl Clone for SyntheticInstrumentBuilder
impl Clone for SyntheticInstrumentBuilder
Source§fn clone(&self) -> SyntheticInstrumentBuilder
fn clone(&self) -> SyntheticInstrumentBuilder
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 SyntheticInstrumentBuilder
impl !RefUnwindSafe for SyntheticInstrumentBuilder
impl Send for SyntheticInstrumentBuilder
impl Sync for SyntheticInstrumentBuilder
impl Unpin for SyntheticInstrumentBuilder
impl !UnwindSafe for SyntheticInstrumentBuilder
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