pub struct GetKrakenUserResponseDataResult {
pub created_at: DateTime<Utc>,
pub external_id: Option<String>,
pub status: GetKrakenUserResponseDataResultStatus,
pub user: GetKrakenUserResponseDataResultUser,
pub user_type: GetKrakenUserResponseDataResultUserType,
}Expand description
GetKrakenUserResponseDataResult
JSON schema
{
"type": "object",
"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§
§created_at: DateTime<Utc>§external_id: Option<String>§status: GetKrakenUserResponseDataResultStatus§user: GetKrakenUserResponseDataResultUser§user_type: GetKrakenUserResponseDataResultUserTypeTrait Implementations§
Source§impl Clone for GetKrakenUserResponseDataResult
impl Clone for GetKrakenUserResponseDataResult
Source§fn clone(&self) -> GetKrakenUserResponseDataResult
fn clone(&self) -> GetKrakenUserResponseDataResult
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 GetKrakenUserResponseDataResult
impl<'de> Deserialize<'de> for GetKrakenUserResponseDataResult
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<&GetKrakenUserResponseDataResult> for GetKrakenUserResponseDataResult
impl From<&GetKrakenUserResponseDataResult> for GetKrakenUserResponseDataResult
Source§fn from(value: &GetKrakenUserResponseDataResult) -> Self
fn from(value: &GetKrakenUserResponseDataResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetKrakenUserResponseDataResult
impl RefUnwindSafe for GetKrakenUserResponseDataResult
impl Send for GetKrakenUserResponseDataResult
impl Sync for GetKrakenUserResponseDataResult
impl Unpin for GetKrakenUserResponseDataResult
impl UnwindSafe for GetKrakenUserResponseDataResult
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