pub struct ProtoOaErrorRes {
pub payload_type: Option<i32>,
pub ctid_trader_account_id: Option<i64>,
pub error_code: String,
pub description: Option<String>,
pub maintenance_end_timestamp: Option<i64>,
pub retry_after: Option<u64>,
}Expand description
- Generic response when an ERROR occurred.
Fields§
§payload_type: Option<i32>§ctid_trader_account_id: Option<i64>The unique identifier of the trader’s account in cTrader platform.
error_code: StringThe name of the ProtoErrorCode or the other custom ErrorCodes (e.g. ProtoCHErrorCode).
description: Option<String>The error description.
maintenance_end_timestamp: Option<i64>The Unix time in seconds when the current maintenance session will be ended.
retry_after: Option<u64>When you hit rate limit with errorCode=BLOCKED_PAYLOAD_TYPE, this field will contain amount of seconds until related payload type will be unlocked.
Implementations§
Source§impl ProtoOaErrorRes
impl ProtoOaErrorRes
Sourcepub fn payload_type(&self) -> ProtoOaPayloadType
pub fn payload_type(&self) -> ProtoOaPayloadType
Returns the enum value of payload_type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_payload_type(&mut self, value: ProtoOaPayloadType)
pub fn set_payload_type(&mut self, value: ProtoOaPayloadType)
Sets payload_type to the provided enum value.
Sourcepub fn ctid_trader_account_id(&self) -> i64
pub fn ctid_trader_account_id(&self) -> i64
Returns the value of ctid_trader_account_id, or the default value if ctid_trader_account_id is unset.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn maintenance_end_timestamp(&self) -> i64
pub fn maintenance_end_timestamp(&self) -> i64
Returns the value of maintenance_end_timestamp, or the default value if maintenance_end_timestamp is unset.
Sourcepub fn retry_after(&self) -> u64
pub fn retry_after(&self) -> u64
Returns the value of retry_after, or the default value if retry_after is unset.
Trait Implementations§
Source§impl Clone for ProtoOaErrorRes
impl Clone for ProtoOaErrorRes
Source§fn clone(&self) -> ProtoOaErrorRes
fn clone(&self) -> ProtoOaErrorRes
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtoOaErrorRes
impl Debug for ProtoOaErrorRes
Source§impl Default for ProtoOaErrorRes
impl Default for ProtoOaErrorRes
Source§impl Hash for ProtoOaErrorRes
impl Hash for ProtoOaErrorRes
Source§impl Message for ProtoOaErrorRes
impl Message for ProtoOaErrorRes
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 ProtoOaErrorRes
impl PartialEq for ProtoOaErrorRes
Source§fn eq(&self, other: &ProtoOaErrorRes) -> bool
fn eq(&self, other: &ProtoOaErrorRes) -> bool
self and other values to be equal, and is used by ==.