pub struct GetTechAnalysisRequest {
pub indicator_type: i32,
pub instrument_uid: String,
pub from: Option<Timestamp>,
pub to: Option<Timestamp>,
pub interval: i32,
pub type_of_price: i32,
pub length: i32,
pub deviation: Option<Deviation>,
pub smoothing: Option<Smoothing>,
}
Fields§
§indicator_type: i32
Тип технического индикатора.
instrument_uid: String
UID инструмента.
from: Option<Timestamp>
Начало запрашиваемого периода по UTC.
to: Option<Timestamp>
Окончание запрашиваемого периода по UTC.
interval: i32
Интервал, за который рассчитывается индикатор.
type_of_price: i32
Тип цены, который используется при расчёте индикатора.
length: i32
Торговый период, за который рассчитывается индикатор.
deviation: Option<Deviation>
Параметры отклонения.
smoothing: Option<Smoothing>
Параметры сглаживания.
Implementations§
source§impl GetTechAnalysisRequest
impl GetTechAnalysisRequest
sourcepub fn indicator_type(&self) -> IndicatorType
pub fn indicator_type(&self) -> IndicatorType
Returns the enum value of indicator_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_indicator_type(&mut self, value: IndicatorType)
pub fn set_indicator_type(&mut self, value: IndicatorType)
Sets indicator_type
to the provided enum value.
sourcepub fn interval(&self) -> IndicatorInterval
pub fn interval(&self) -> IndicatorInterval
Returns the enum value of interval
, or the default if the field is set to an invalid enum value.
sourcepub fn set_interval(&mut self, value: IndicatorInterval)
pub fn set_interval(&mut self, value: IndicatorInterval)
Sets interval
to the provided enum value.
sourcepub fn type_of_price(&self) -> TypeOfPrice
pub fn type_of_price(&self) -> TypeOfPrice
Returns the enum value of type_of_price
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type_of_price(&mut self, value: TypeOfPrice)
pub fn set_type_of_price(&mut self, value: TypeOfPrice)
Sets type_of_price
to the provided enum value.
Trait Implementations§
source§impl Clone for GetTechAnalysisRequest
impl Clone for GetTechAnalysisRequest
source§fn clone(&self) -> GetTechAnalysisRequest
fn clone(&self) -> GetTechAnalysisRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetTechAnalysisRequest
impl Debug for GetTechAnalysisRequest
source§impl Default for GetTechAnalysisRequest
impl Default for GetTechAnalysisRequest
source§impl Message for GetTechAnalysisRequest
impl Message for GetTechAnalysisRequest
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 GetTechAnalysisRequest
impl PartialEq for GetTechAnalysisRequest
impl StructuralPartialEq for GetTechAnalysisRequest
Auto Trait Implementations§
impl Freeze for GetTechAnalysisRequest
impl RefUnwindSafe for GetTechAnalysisRequest
impl Send for GetTechAnalysisRequest
impl Sync for GetTechAnalysisRequest
impl Unpin for GetTechAnalysisRequest
impl UnwindSafe for GetTechAnalysisRequest
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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