pub struct GetKrakenUserResponse {
pub data: GetKrakenUserResponseData,
}Expand description
GetKrakenUserResponse
JSON schema
{
"examples": [
{
"data": {
"result": {
"created_at": "2024-04-15T10:00:00Z",
"external_id": "ext-user-12345",
"status": {
"required_actions": [],
"state": "ok"
},
"user": "AA00XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"user_type": "individual"
}
}
}
],
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"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§
§data: GetKrakenUserResponseDataTrait Implementations§
Source§impl Clone for GetKrakenUserResponse
impl Clone for GetKrakenUserResponse
Source§fn clone(&self) -> GetKrakenUserResponse
fn clone(&self) -> GetKrakenUserResponse
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 GetKrakenUserResponse
impl Debug for GetKrakenUserResponse
Source§impl<'de> Deserialize<'de> for GetKrakenUserResponse
impl<'de> Deserialize<'de> for GetKrakenUserResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetKrakenUserResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetKrakenUserResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GetKrakenUserResponse> for GetKrakenUserResponse
impl From<&GetKrakenUserResponse> for GetKrakenUserResponse
Source§fn from(value: &GetKrakenUserResponse) -> GetKrakenUserResponse
fn from(value: &GetKrakenUserResponse) -> GetKrakenUserResponse
Converts to this type from the input type.
Source§impl Serialize for GetKrakenUserResponse
impl Serialize for GetKrakenUserResponse
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 GetKrakenUserResponse
impl RefUnwindSafe for GetKrakenUserResponse
impl Send for GetKrakenUserResponse
impl Sync for GetKrakenUserResponse
impl Unpin for GetKrakenUserResponse
impl UnwindSafe for GetKrakenUserResponse
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