Struct ory_client::models::create_identity_body::CreateIdentityBody
source · pub struct CreateIdentityBody {
pub credentials: Option<Box<IdentityWithCredentials>>,
pub metadata_admin: Option<Value>,
pub metadata_public: Option<Value>,
pub recovery_addresses: Option<Vec<RecoveryIdentityAddress>>,
pub schema_id: String,
pub state: Option<IdentityState>,
pub traits: Value,
pub verifiable_addresses: Option<Vec<VerifiableIdentityAddress>>,
}Expand description
CreateIdentityBody : Create Identity Body
Fields§
§credentials: Option<Box<IdentityWithCredentials>>§metadata_admin: Option<Value>Store metadata about the user which is only accessible through admin APIs such as GET /admin/identities/<id>.
metadata_public: Option<Value>Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.
recovery_addresses: Option<Vec<RecoveryIdentityAddress>>RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.
schema_id: StringSchemaID is the ID of the JSON Schema to be used for validating the identity’s traits.
state: Option<IdentityState>§traits: ValueTraits represent an identity’s traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in schema_url.
verifiable_addresses: Option<Vec<VerifiableIdentityAddress>>VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.
Implementations§
source§impl CreateIdentityBody
impl CreateIdentityBody
sourcepub fn new(schema_id: String, traits: Value) -> CreateIdentityBody
pub fn new(schema_id: String, traits: Value) -> CreateIdentityBody
Create Identity Body
Trait Implementations§
source§impl Clone for CreateIdentityBody
impl Clone for CreateIdentityBody
source§fn clone(&self) -> CreateIdentityBody
fn clone(&self) -> CreateIdentityBody
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateIdentityBody
impl Debug for CreateIdentityBody
source§impl<'de> Deserialize<'de> for CreateIdentityBody
impl<'de> Deserialize<'de> for CreateIdentityBody
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>,
source§impl PartialEq<CreateIdentityBody> for CreateIdentityBody
impl PartialEq<CreateIdentityBody> for CreateIdentityBody
source§fn eq(&self, other: &CreateIdentityBody) -> bool
fn eq(&self, other: &CreateIdentityBody) -> bool
self and other values to be equal, and is used
by ==.