pub struct OpenApiEngine { /* private fields */ }Implementations§
Source§impl OpenApiEngine
impl OpenApiEngine
pub fn new() -> Self
pub fn with_symbols( symbols: impl IntoIterator<Item = (impl Into<String>, SymbolSpec)>, ) -> Self
pub fn register_symbol(&mut self, symbol: impl Into<String>, spec: SymbolSpec)
pub fn has_symbol(&self, symbol: impl AsRef<str>) -> bool
pub fn volume_from_lot_size( &self, symbol: impl AsRef<str>, lot_size: Decimal, ) -> Result<VolumeQuote, OpenApiError>
pub fn quote_volume_proto( &self, request: QuoteVolumeRequest, ) -> Result<QuoteVolumeResponse, OpenApiError>
Trait Implementations§
Source§impl Debug for OpenApiEngine
impl Debug for OpenApiEngine
Auto Trait Implementations§
impl Freeze for OpenApiEngine
impl RefUnwindSafe for OpenApiEngine
impl Send for OpenApiEngine
impl Sync for OpenApiEngine
impl Unpin for OpenApiEngine
impl UnsafeUnpin for OpenApiEngine
impl UnwindSafe for OpenApiEngine
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request