pub struct GetOperationsByCursorRequest {
pub account_id: String,
pub instrument_id: Option<String>,
pub from: Option<Timestamp>,
pub to: Option<Timestamp>,
pub cursor: Option<String>,
pub limit: Option<i32>,
pub operation_types: Vec<i32>,
pub state: Option<i32>,
pub without_commissions: Option<bool>,
pub without_trades: Option<bool>,
pub without_overnights: Option<bool>,
}
Expand description
Запрос списка операций по счёту с пагинацией.
Fields§
§account_id: String
Идентификатор счёта клиента. Обязательный параметр для данного метода, остальные параметры опциональны.
instrument_id: Option<String>
Идентификатор инструмента (Figi инструмента или uid инструмента)
from: Option<Timestamp>
Начало периода (по UTC).
to: Option<Timestamp>
Окончание периода (по UTC).
cursor: Option<String>
Идентификатор элемента, с которого начать формировать ответ.
limit: Option<i32>
Лимит количества операций. По умолчанию устанавливается значение 100, максимальное значение 1000.
operation_types: Vec<i32>
Тип операции. Принимает значение из списка OperationType.
state: Option<i32>
Статус запрашиваемых операций, возможные значения указаны в OperationState.
without_commissions: Option<bool>
Флаг возвращать ли комиссии, по умолчанию false
without_trades: Option<bool>
Флаг получения ответа без массива сделок.
without_overnights: Option<bool>
Флаг не показывать overnight операций.
Implementations§
source§impl GetOperationsByCursorRequest
impl GetOperationsByCursorRequest
sourcepub fn instrument_id(&self) -> &str
pub fn instrument_id(&self) -> &str
Returns the value of instrument_id
, or the default value if instrument_id
is unset.
sourcepub fn cursor(&self) -> &str
pub fn cursor(&self) -> &str
Returns the value of cursor
, or the default value if cursor
is unset.
sourcepub fn operation_types(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<OperationType>>
pub fn operation_types( &self ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<OperationType>>
Returns an iterator which yields the valid enum values contained in operation_types
.
sourcepub fn push_operation_types(&mut self, value: OperationType)
pub fn push_operation_types(&mut self, value: OperationType)
Appends the provided enum value to operation_types
.
sourcepub fn state(&self) -> OperationState
pub fn state(&self) -> OperationState
Returns the enum value of state
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_state(&mut self, value: OperationState)
pub fn set_state(&mut self, value: OperationState)
Sets state
to the provided enum value.
sourcepub fn without_commissions(&self) -> bool
pub fn without_commissions(&self) -> bool
Returns the value of without_commissions
, or the default value if without_commissions
is unset.
sourcepub fn without_trades(&self) -> bool
pub fn without_trades(&self) -> bool
Returns the value of without_trades
, or the default value if without_trades
is unset.
sourcepub fn without_overnights(&self) -> bool
pub fn without_overnights(&self) -> bool
Returns the value of without_overnights
, or the default value if without_overnights
is unset.
Trait Implementations§
source§impl Clone for GetOperationsByCursorRequest
impl Clone for GetOperationsByCursorRequest
source§fn clone(&self) -> GetOperationsByCursorRequest
fn clone(&self) -> GetOperationsByCursorRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetOperationsByCursorRequest
impl Debug for GetOperationsByCursorRequest
source§impl Message for GetOperationsByCursorRequest
impl Message for GetOperationsByCursorRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.source§impl PartialEq for GetOperationsByCursorRequest
impl PartialEq for GetOperationsByCursorRequest
source§fn eq(&self, other: &GetOperationsByCursorRequest) -> bool
fn eq(&self, other: &GetOperationsByCursorRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetOperationsByCursorRequest
Auto Trait Implementations§
impl Freeze for GetOperationsByCursorRequest
impl RefUnwindSafe for GetOperationsByCursorRequest
impl Send for GetOperationsByCursorRequest
impl Sync for GetOperationsByCursorRequest
impl Unpin for GetOperationsByCursorRequest
impl UnwindSafe for GetOperationsByCursorRequest
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
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>
T
in a tonic::Request