pub struct InstrumentsServiceClient<T> { /* private fields */ }
Implementations
sourceimpl<T> InstrumentsServiceClient<T> where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> InstrumentsServiceClient<T> where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> InstrumentsServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub async fn trading_schedules(
&mut self,
request: impl IntoRequest<TradingSchedulesRequest>
) -> Result<Response<TradingSchedulesResponse>, Status>
pub async fn trading_schedules(
&mut self,
request: impl IntoRequest<TradingSchedulesRequest>
) -> Result<Response<TradingSchedulesResponse>, Status>
Метод получения расписания торгов торговых площадок.
sourcepub async fn bond_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<BondResponse>, Status>
pub async fn bond_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<BondResponse>, Status>
Метод получения облигации по её идентификатору.
sourcepub async fn bonds(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<BondsResponse>, Status>
pub async fn bonds(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<BondsResponse>, Status>
Метод получения списка облигаций.
sourcepub async fn get_bond_coupons(
&mut self,
request: impl IntoRequest<GetBondCouponsRequest>
) -> Result<Response<GetBondCouponsResponse>, Status>
pub async fn get_bond_coupons(
&mut self,
request: impl IntoRequest<GetBondCouponsRequest>
) -> Result<Response<GetBondCouponsResponse>, Status>
Метод получения графика выплат купонов по облигации.
sourcepub async fn currency_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<CurrencyResponse>, Status>
pub async fn currency_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<CurrencyResponse>, Status>
Метод получения валюты по её идентификатору.
sourcepub async fn currencies(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<CurrenciesResponse>, Status>
pub async fn currencies(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<CurrenciesResponse>, Status>
Метод получения списка валют.
sourcepub async fn etf_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<EtfResponse>, Status>
pub async fn etf_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<EtfResponse>, Status>
Метод получения инвестиционного фонда по его идентификатору.
sourcepub async fn etfs(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<EtfsResponse>, Status>
pub async fn etfs(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<EtfsResponse>, Status>
Метод получения списка инвестиционных фондов.
sourcepub async fn future_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<FutureResponse>, Status>
pub async fn future_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<FutureResponse>, Status>
Метод получения фьючерса по его идентификатору.
sourcepub async fn futures(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<FuturesResponse>, Status>
pub async fn futures(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<FuturesResponse>, Status>
Метод получения списка фьючерсов.
sourcepub async fn option_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<OptionResponse>, Status>
pub async fn option_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<OptionResponse>, Status>
Метод получения опциона по его идентификатору.
sourcepub async fn options(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<OptionsResponse>, Status>
pub async fn options(
&mut self,
request: impl IntoRequest<InstrumentsRequest>
) -> Result<Response<OptionsResponse>, Status>
Метод получения списка опционов.
Метод получения акции по её идентификатору.
Метод получения списка акций.
sourcepub async fn get_accrued_interests(
&mut self,
request: impl IntoRequest<GetAccruedInterestsRequest>
) -> Result<Response<GetAccruedInterestsResponse>, Status>
pub async fn get_accrued_interests(
&mut self,
request: impl IntoRequest<GetAccruedInterestsRequest>
) -> Result<Response<GetAccruedInterestsResponse>, Status>
Метод получения накопленного купонного дохода по облигации.
sourcepub async fn get_futures_margin(
&mut self,
request: impl IntoRequest<GetFuturesMarginRequest>
) -> Result<Response<GetFuturesMarginResponse>, Status>
pub async fn get_futures_margin(
&mut self,
request: impl IntoRequest<GetFuturesMarginRequest>
) -> Result<Response<GetFuturesMarginResponse>, Status>
Метод получения размера гарантийного обеспечения по фьючерсам.
sourcepub async fn get_instrument_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<InstrumentResponse>, Status>
pub async fn get_instrument_by(
&mut self,
request: impl IntoRequest<InstrumentRequest>
) -> Result<Response<InstrumentResponse>, Status>
Метод получения основной информации об инструменте.
sourcepub async fn get_dividends(
&mut self,
request: impl IntoRequest<GetDividendsRequest>
) -> Result<Response<GetDividendsResponse>, Status>
pub async fn get_dividends(
&mut self,
request: impl IntoRequest<GetDividendsRequest>
) -> Result<Response<GetDividendsResponse>, Status>
Метод для получения событий выплаты дивидендов по инструменту.
sourcepub async fn get_asset_by(
&mut self,
request: impl IntoRequest<AssetRequest>
) -> Result<Response<AssetResponse>, Status>
pub async fn get_asset_by(
&mut self,
request: impl IntoRequest<AssetRequest>
) -> Result<Response<AssetResponse>, Status>
Метод получения актива по его идентификатору.
sourcepub async fn get_assets(
&mut self,
request: impl IntoRequest<AssetsRequest>
) -> Result<Response<AssetsResponse>, Status>
pub async fn get_assets(
&mut self,
request: impl IntoRequest<AssetsRequest>
) -> Result<Response<AssetsResponse>, Status>
Метод получения списка активов.
sourcepub async fn get_favorites(
&mut self,
request: impl IntoRequest<GetFavoritesRequest>
) -> Result<Response<GetFavoritesResponse>, Status>
pub async fn get_favorites(
&mut self,
request: impl IntoRequest<GetFavoritesRequest>
) -> Result<Response<GetFavoritesResponse>, Status>
Метод получения списка избранных инструментов.
sourcepub async fn edit_favorites(
&mut self,
request: impl IntoRequest<EditFavoritesRequest>
) -> Result<Response<EditFavoritesResponse>, Status>
pub async fn edit_favorites(
&mut self,
request: impl IntoRequest<EditFavoritesRequest>
) -> Result<Response<EditFavoritesResponse>, Status>
Метод редактирования списка избранных инструментов.
sourcepub async fn get_countries(
&mut self,
request: impl IntoRequest<GetCountriesRequest>
) -> Result<Response<GetCountriesResponse>, Status>
pub async fn get_countries(
&mut self,
request: impl IntoRequest<GetCountriesRequest>
) -> Result<Response<GetCountriesResponse>, Status>
Метод получения списка стран.
sourcepub async fn find_instrument(
&mut self,
request: impl IntoRequest<FindInstrumentRequest>
) -> Result<Response<FindInstrumentResponse>, Status>
pub async fn find_instrument(
&mut self,
request: impl IntoRequest<FindInstrumentRequest>
) -> Result<Response<FindInstrumentResponse>, Status>
Метод поиска инструмента.
sourcepub async fn get_brands(
&mut self,
request: impl IntoRequest<GetBrandsRequest>
) -> Result<Response<GetBrandsResponse>, Status>
pub async fn get_brands(
&mut self,
request: impl IntoRequest<GetBrandsRequest>
) -> Result<Response<GetBrandsResponse>, Status>
Метод получения списка брендов.
sourcepub async fn get_brand_by(
&mut self,
request: impl IntoRequest<GetBrandRequest>
) -> Result<Response<Brand>, Status>
pub async fn get_brand_by(
&mut self,
request: impl IntoRequest<GetBrandRequest>
) -> Result<Response<Brand>, Status>
Метод получения бренда по его идентификатору.
Trait Implementations
sourceimpl<T: Clone> Clone for InstrumentsServiceClient<T>
impl<T: Clone> Clone for InstrumentsServiceClient<T>
sourcefn clone(&self) -> InstrumentsServiceClient<T>
fn clone(&self) -> InstrumentsServiceClient<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for InstrumentsServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for InstrumentsServiceClient<T> where
T: Send,
impl<T> Sync for InstrumentsServiceClient<T> where
T: Sync,
impl<T> Unpin for InstrumentsServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for InstrumentsServiceClient<T> where
T: UnwindSafe,
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>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
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