pub struct GetSignalsRequest {
pub signal_id: Option<String>,
pub strategy_id: Option<String>,
pub strategy_type: Option<i32>,
pub instrument_uid: Option<String>,
pub from: Option<Timestamp>,
pub to: Option<Timestamp>,
pub direction: Option<i32>,
pub active: Option<i32>,
pub paging: Option<Page>,
}Expand description
Запрос сигналов.
Fields§
§signal_id: Option<String>Идентификатор сигнала.
strategy_id: Option<String>Идентификатор стратегии.
strategy_type: Option<i32>Тип стратегии.
instrument_uid: Option<String>Идентификатор бумаги.
from: Option<Timestamp>Дата начала запрашиваемого интервала по UTC.
to: Option<Timestamp>Дата конца запрашиваемого интервала по UTC.
direction: Option<i32>Направление сигнала.
active: Option<i32>Состояние сигнала.
paging: Option<Page>Настройки пагинации.
Implementations§
Source§impl GetSignalsRequest
impl GetSignalsRequest
Sourcepub fn signal_id(&self) -> &str
pub fn signal_id(&self) -> &str
Returns the value of signal_id, or the default value if signal_id is unset.
Sourcepub fn strategy_id(&self) -> &str
pub fn strategy_id(&self) -> &str
Returns the value of strategy_id, or the default value if strategy_id is unset.
Sourcepub fn strategy_type(&self) -> StrategyType
pub fn strategy_type(&self) -> StrategyType
Returns the enum value of strategy_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_strategy_type(&mut self, value: StrategyType)
pub fn set_strategy_type(&mut self, value: StrategyType)
Sets strategy_type to the provided enum value.
Sourcepub fn instrument_uid(&self) -> &str
pub fn instrument_uid(&self) -> &str
Returns the value of instrument_uid, or the default value if instrument_uid is unset.
Sourcepub fn direction(&self) -> SignalDirection
pub fn direction(&self) -> SignalDirection
Returns the enum value of direction, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_direction(&mut self, value: SignalDirection)
pub fn set_direction(&mut self, value: SignalDirection)
Sets direction to the provided enum value.
Sourcepub fn active(&self) -> SignalState
pub fn active(&self) -> SignalState
Returns the enum value of active, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_active(&mut self, value: SignalState)
pub fn set_active(&mut self, value: SignalState)
Sets active to the provided enum value.
Trait Implementations§
Source§impl Clone for GetSignalsRequest
impl Clone for GetSignalsRequest
Source§fn clone(&self) -> GetSignalsRequest
fn clone(&self) -> GetSignalsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetSignalsRequest
impl Debug for GetSignalsRequest
Source§impl Default for GetSignalsRequest
impl Default for GetSignalsRequest
Source§impl Message for GetSignalsRequest
impl Message for GetSignalsRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for GetSignalsRequest
impl PartialEq for GetSignalsRequest
impl StructuralPartialEq for GetSignalsRequest
Auto Trait Implementations§
impl Freeze for GetSignalsRequest
impl RefUnwindSafe for GetSignalsRequest
impl Send for GetSignalsRequest
impl Sync for GetSignalsRequest
impl Unpin for GetSignalsRequest
impl UnwindSafe for GetSignalsRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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