Struct tinkoff_invest::TinkoffInvestBuilder
source · pub struct TinkoffInvestBuilder<I>where
I: Interceptor + Clone,{ /* private fields */ }
Implementations§
source§impl<I> TinkoffInvestBuilder<I>where
I: Interceptor + Clone,
impl<I> TinkoffInvestBuilder<I>where
I: Interceptor + Clone,
pub fn new() -> Self
pub fn endpoint(&mut self, endpoint: Endpoint) -> &Self
pub fn interceptor(&mut self, interceptor: Option<I>) -> &Self
pub fn enable_users_service_client(&mut self, value: bool) -> &Self
pub fn enable_instruments_service_client(&mut self, value: bool) -> &Self
pub fn enable_market_data_service_client(&mut self, value: bool) -> &Self
pub fn enable_operations_service_client(&mut self, value: bool) -> &Self
pub fn enable_orders_service_client(&mut self, value: bool) -> &Self
pub async fn build(self) -> Result<TinkoffInvest<I>, Box<dyn Error>>
Trait Implementations§
source§impl<I> Default for TinkoffInvestBuilder<I>where
I: Interceptor + Clone,
impl<I> Default for TinkoffInvestBuilder<I>where
I: Interceptor + Clone,
Auto Trait Implementations§
impl<I> !RefUnwindSafe for TinkoffInvestBuilder<I>
impl<I> Send for TinkoffInvestBuilder<I>where
I: Send,
impl<I> Sync for TinkoffInvestBuilder<I>where
I: Sync,
impl<I> Unpin for TinkoffInvestBuilder<I>where
I: Unpin,
impl<I> !UnwindSafe for TinkoffInvestBuilder<I>
Blanket Implementations§
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