Struct ory_client::models::update_identity_body::UpdateIdentityBody
source · pub struct UpdateIdentityBody {
pub credentials: Option<Box<IdentityWithCredentials>>,
pub metadata_admin: Option<Value>,
pub metadata_public: Option<Value>,
pub schema_id: String,
pub state: IdentityState,
pub traits: Value,
}
Expand description
UpdateIdentityBody : Update 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.
schema_id: String
SchemaID is the ID of the JSON Schema to be used for validating the identity’s traits. If set will update the Identity’s SchemaID.
state: IdentityState
§traits: Value
Traits 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_id
.
Implementations§
source§impl UpdateIdentityBody
impl UpdateIdentityBody
sourcepub fn new(
schema_id: String,
state: IdentityState,
traits: Value
) -> UpdateIdentityBody
pub fn new(
schema_id: String,
state: IdentityState,
traits: Value
) -> UpdateIdentityBody
Update Identity Body
Trait Implementations§
source§impl Clone for UpdateIdentityBody
impl Clone for UpdateIdentityBody
source§fn clone(&self) -> UpdateIdentityBody
fn clone(&self) -> UpdateIdentityBody
Returns a copy 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 UpdateIdentityBody
impl Debug for UpdateIdentityBody
source§impl<'de> Deserialize<'de> for UpdateIdentityBody
impl<'de> Deserialize<'de> for UpdateIdentityBody
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 PartialEq<UpdateIdentityBody> for UpdateIdentityBody
impl PartialEq<UpdateIdentityBody> for UpdateIdentityBody
source§fn eq(&self, other: &UpdateIdentityBody) -> bool
fn eq(&self, other: &UpdateIdentityBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.