pub enum GetKrakenUserResponseDataResultStatus {
Ok {
required_actions: Vec<GetKrakenUserResponseDataResultStatusRequiredActionsItem>,
},
Disabled {
reasons: Vec<String>,
required_actions: Vec<GetKrakenUserResponseDataResultStatusRequiredActionsItem>,
},
Closed {
reasons: Vec<String>,
},
}Expand description
GetKrakenUserResponseDataResultStatus
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"required_actions",
"state"
],
"properties": {
"required_actions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"action_type",
"deadline",
"reasons",
"verification_type"
],
"properties": {
"action_type": {
"type": "string",
"enum": [
"verification"
]
},
"deadline": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"reasons": {
"type": "array",
"items": {
"type": "string"
}
},
"verification_type": {
"type": "string",
"enum": [
"identity",
"negative_news_check",
"pep_check",
"residence",
"sanctions_check",
"selfie",
"tax_id"
]
}
}
},
{
"type": "object",
"required": [
"action_type",
"deadline",
"details_type",
"reason"
],
"properties": {
"action_type": {
"type": "string",
"enum": [
"provide_details"
]
},
"deadline": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"details_type": {
"oneOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"terms_of_service"
]
},
"version": {
"type": "number"
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"full_name"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"date_of_birth"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"city_of_birth"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"country_of_birth"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"nationalities"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"residence"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"phone"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"occupation"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"employer"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"tax_ids"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"client_identifier"
]
}
}
}
]
},
"reason": {
"type": [
"string",
"null"
]
}
}
},
{
"type": "object",
"required": [
"action_type",
"wait_reason_code"
],
"properties": {
"action_type": {
"type": "string",
"enum": [
"wait"
]
},
"wait_reason_code": {
"type": "string"
}
}
}
]
}
},
"state": {
"type": "string",
"enum": [
"ok"
]
}
}
},
{
"type": "object",
"required": [
"reasons",
"required_actions",
"state"
],
"properties": {
"reasons": {
"type": "array",
"items": {
"type": "string"
}
},
"required_actions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"action_type",
"deadline",
"reasons",
"verification_type"
],
"properties": {
"action_type": {
"type": "string",
"enum": [
"verification"
]
},
"deadline": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"reasons": {
"type": "array",
"items": {
"type": "string"
}
},
"verification_type": {
"type": "string",
"enum": [
"identity",
"negative_news_check",
"pep_check",
"residence",
"sanctions_check",
"selfie",
"tax_id"
]
}
}
},
{
"type": "object",
"required": [
"action_type",
"deadline",
"details_type",
"reason"
],
"properties": {
"action_type": {
"type": "string",
"enum": [
"provide_details"
]
},
"deadline": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"details_type": {
"oneOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"terms_of_service"
]
},
"version": {
"type": "number"
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"full_name"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"date_of_birth"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"city_of_birth"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"country_of_birth"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"nationalities"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"residence"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"phone"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"occupation"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"employer"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"tax_ids"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"client_identifier"
]
}
}
}
]
},
"reason": {
"type": [
"string",
"null"
]
}
}
},
{
"type": "object",
"required": [
"action_type",
"wait_reason_code"
],
"properties": {
"action_type": {
"type": "string",
"enum": [
"wait"
]
},
"wait_reason_code": {
"type": "string"
}
}
}
]
}
},
"state": {
"type": "string",
"enum": [
"disabled"
]
}
}
},
{
"type": "object",
"required": [
"reasons",
"state"
],
"properties": {
"reasons": {
"type": "array",
"items": {
"type": "string"
}
},
"state": {
"type": "string",
"enum": [
"closed"
]
}
}
}
]
}Variants§
Ok
Fields
§
required_actions: Vec<GetKrakenUserResponseDataResultStatusRequiredActionsItem>Disabled
Fields
§
required_actions: Vec<GetKrakenUserResponseDataResultStatusRequiredActionsItem>Closed
Trait Implementations§
Source§impl Clone for GetKrakenUserResponseDataResultStatus
impl Clone for GetKrakenUserResponseDataResultStatus
Source§fn clone(&self) -> GetKrakenUserResponseDataResultStatus
fn clone(&self) -> GetKrakenUserResponseDataResultStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for GetKrakenUserResponseDataResultStatus
impl<'de> Deserialize<'de> for GetKrakenUserResponseDataResultStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetKrakenUserResponseDataResultStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetKrakenUserResponseDataResultStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GetKrakenUserResponseDataResultStatus> for GetKrakenUserResponseDataResultStatus
impl From<&GetKrakenUserResponseDataResultStatus> for GetKrakenUserResponseDataResultStatus
Source§fn from(
value: &GetKrakenUserResponseDataResultStatus,
) -> GetKrakenUserResponseDataResultStatus
fn from( value: &GetKrakenUserResponseDataResultStatus, ) -> GetKrakenUserResponseDataResultStatus
Converts to this type from the input type.
Source§impl Serialize for GetKrakenUserResponseDataResultStatus
impl Serialize for GetKrakenUserResponseDataResultStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GetKrakenUserResponseDataResultStatus
impl RefUnwindSafe for GetKrakenUserResponseDataResultStatus
impl Send for GetKrakenUserResponseDataResultStatus
impl Sync for GetKrakenUserResponseDataResultStatus
impl Unpin for GetKrakenUserResponseDataResultStatus
impl UnwindSafe for GetKrakenUserResponseDataResultStatus
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
Mutably borrows from an owned value. Read more