Struct barter::execution::FillEventBuilder
source · [−]pub struct FillEventBuilder {
pub trace_id: Option<Uuid>,
pub timestamp: Option<DateTime<Utc>>,
pub exchange: Option<&'static str>,
pub symbol: Option<String>,
pub market_meta: Option<MarketMeta>,
pub decision: Option<Decision>,
pub quantity: Option<f64>,
pub fill_value_gross: Option<f64>,
pub fees: Option<Fees>,
}
Expand description
Builder to construct FillEvent instances.
Fields
trace_id: Option<Uuid>
timestamp: Option<DateTime<Utc>>
exchange: Option<&'static str>
symbol: Option<String>
market_meta: Option<MarketMeta>
decision: Option<Decision>
quantity: Option<f64>
fill_value_gross: Option<f64>
fees: Option<Fees>
Implementations
sourceimpl FillEventBuilder
impl FillEventBuilder
pub fn new() -> Self
pub fn trace_id(self, value: Uuid) -> Self
pub fn timestamp(self, value: DateTime<Utc>) -> Self
pub fn exchange(self, value: &'static str) -> Self
pub fn symbol(self, value: &'static str) -> Self
pub fn market_meta(self, value: MarketMeta) -> Self
pub fn decision(self, value: Decision) -> Self
pub fn quantity(self, value: f64) -> Self
pub fn fill_value_gross(self, value: f64) -> Self
pub fn fees(self, value: Fees) -> Self
pub fn build(self) -> Result<FillEvent, ExecutionError>
Trait Implementations
sourceimpl Debug for FillEventBuilder
impl Debug for FillEventBuilder
sourceimpl Default for FillEventBuilder
impl Default for FillEventBuilder
sourcefn default() -> FillEventBuilder
fn default() -> FillEventBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FillEventBuilder
impl Send for FillEventBuilder
impl Sync for FillEventBuilder
impl Unpin for FillEventBuilder
impl UnwindSafe for FillEventBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more