pub struct GetKrakenUserResponseData {
pub error: Vec<Value>,
pub errors: Vec<Value>,
pub result: Option<GetKrakenUserResponseDataResult>,
}Expand description
GetKrakenUserResponseData
JSON schema
{
"type": "object",
"required": [
"result"
],
"properties": {
"error": {
"type": "array",
"items": {}
},
"errors": {
"type": "array",
"items": {}
},
"result": {
"type": [
"object",
"null"
],
"required": [
"created_at",
"external_id",
"status",
"user",
"user_type"
],
"properties": {
"created_at": {
"type": "string",
"format": "date-time"
},
"external_id": {
"type": [
"string",
"null"
]
},
"status": {
"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"
]
}
}
}
]
},
"user": {
"type": "string",
"maxLength": 42,
"minLength": 14
},
"user_type": {
"type": "string",
"enum": [
"corporate",
"individual"
]
}
}
}
}
}Fields§
§error: Vec<Value>§errors: Vec<Value>§result: Option<GetKrakenUserResponseDataResult>Trait Implementations§
Source§impl Clone for GetKrakenUserResponseData
impl Clone for GetKrakenUserResponseData
Source§fn clone(&self) -> GetKrakenUserResponseData
fn clone(&self) -> GetKrakenUserResponseData
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 Debug for GetKrakenUserResponseData
impl Debug for GetKrakenUserResponseData
Source§impl<'de> Deserialize<'de> for GetKrakenUserResponseData
impl<'de> Deserialize<'de> for GetKrakenUserResponseData
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GetKrakenUserResponseData> for GetKrakenUserResponseData
impl From<&GetKrakenUserResponseData> for GetKrakenUserResponseData
Source§fn from(value: &GetKrakenUserResponseData) -> Self
fn from(value: &GetKrakenUserResponseData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetKrakenUserResponseData
impl RefUnwindSafe for GetKrakenUserResponseData
impl Send for GetKrakenUserResponseData
impl Sync for GetKrakenUserResponseData
impl Unpin for GetKrakenUserResponseData
impl UnwindSafe for GetKrakenUserResponseData
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