Skip to main content

RiskAssessment

Struct RiskAssessment 

Source
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: String

Risk 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: i32

Professional 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: String

Re-authentication flag, as returned by the server (empty when not set)

§pi_end_at: i64

Professional 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: String

Date 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: i32

Questionnaire 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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RiskAssessment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RiskAssessment

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RiskAssessment

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RiskAssessment

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more