pub struct RiskAssessment {
pub risk: String,
pub pi: i32,
pub approvals: BTreeMap<String, String>,
pub re_authentication: String,
pub pi_end_at: i64,
pub deadlines: BTreeMap<String, i64>,
pub risk_assessment_at: String,
pub score: i32,
pub strategy_risk_levels: Vec<String>,
}Expand description
Risk assessment (suitability questionnaire) result of the current member
Mirrors the server response of GET /v1/members/me/risk-assessment
field-for-field. Decoding is lenient: integers are accepted as JSON integers
or integer strings (anything else becomes 0), string fields render
non-string values as JSON text (null becomes empty), and a map or list
field holding anything other than an object / array (e.g. null, or [] for
a map) becomes empty.
Fields§
§risk: StringRisk level of the latest questionnaire (e.g. A5).
The server does not document the scale, so do not infer an ordering between levels; report the value as-is. May be empty; the server does not document when.
pi: i32Professional investor (PI) status code, as returned by the server.
The server does not document the code values; treat it as an opaque identifier rather than inferring an ordering from it.
approvals: BTreeMap<String, String>Approval states keyed by item (e.g. car, cka, risk_audit,
is_corporate_client).
Values are the server’s strings, not booleans: is_corporate_client
arrives as "true" / "false", so compare the string rather than
testing it for truthiness.
re_authentication: StringRe-authentication flag, as returned by the server (empty when not set)
pi_end_at: i64Professional investor status end time, as returned by the server (0
when not set).
Deliberately left as the raw integer: the server does not document the
unit (seconds or milliseconds), so the SDK does not convert it to a
timestamp the way other *_at fields are converted. Confirm the unit
with the gateway before interpreting a non-zero value.
deadlines: BTreeMap<String, i64>Deadlines keyed by item, as returned by the server.
Raw integers, with the same undocumented unit as Self::pi_end_at.
risk_assessment_at: StringDate of the latest risk assessment, as returned by the server (e.g.
2026-10-14).
Kept as the server’s string rather than a Date: the server is not
documented to guarantee the yyyy-mm-dd form. May be empty; a null or
absent value also decodes to an empty string, so emptiness does not by
itself mean “never assessed”.
score: i32Questionnaire score
strategy_risk_levels: Vec<String>Strategy risk levels of the member. The server does not document what these levels permit, so do not read them as a trading entitlement.
Trait Implementations§
Source§impl Clone for RiskAssessment
impl Clone for RiskAssessment
Source§impl Debug for RiskAssessment
impl Debug for RiskAssessment
Source§impl Default for RiskAssessment
impl Default for RiskAssessment
Source§impl<'de> Deserialize<'de> for RiskAssessment
impl<'de> Deserialize<'de> for RiskAssessment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RiskAssessment
impl RefUnwindSafe for RiskAssessment
impl Send for RiskAssessment
impl Sync for RiskAssessment
impl Unpin for RiskAssessment
impl UnsafeUnpin for RiskAssessment
impl UnwindSafe for RiskAssessment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more