pub struct AdminCreateIdentityBody {
pub credentials: Option<Box<AdminIdentityImportCredentials>>,
pub recovery_addresses: Option<Vec<RecoveryAddress>>,
pub schema_id: String,
pub state: Option<IdentityState>,
pub traits: Value,
pub verifiable_addresses: Option<Vec<VerifiableIdentityAddress>>,
}
Fields
credentials: Option<Box<AdminIdentityImportCredentials>>
recovery_addresses: Option<Vec<RecoveryAddress>>
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: String
SchemaID is the ID of the JSON Schema to be used for validating the identity’s traits.
state: Option<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_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
sourceimpl AdminCreateIdentityBody
impl AdminCreateIdentityBody
pub fn new(schema_id: String, traits: Value) -> AdminCreateIdentityBody
Trait Implementations
sourceimpl Clone for AdminCreateIdentityBody
impl Clone for AdminCreateIdentityBody
sourcefn clone(&self) -> AdminCreateIdentityBody
fn clone(&self) -> AdminCreateIdentityBody
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AdminCreateIdentityBody
impl Debug for AdminCreateIdentityBody
sourceimpl<'de> Deserialize<'de> for AdminCreateIdentityBody
impl<'de> Deserialize<'de> for AdminCreateIdentityBody
sourcefn 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
sourceimpl PartialEq<AdminCreateIdentityBody> for AdminCreateIdentityBody
impl PartialEq<AdminCreateIdentityBody> for AdminCreateIdentityBody
sourcefn eq(&self, other: &AdminCreateIdentityBody) -> bool
fn eq(&self, other: &AdminCreateIdentityBody) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AdminCreateIdentityBody) -> bool
fn ne(&self, other: &AdminCreateIdentityBody) -> bool
This method tests for !=
.
sourceimpl Serialize for AdminCreateIdentityBody
impl Serialize for AdminCreateIdentityBody
impl StructuralPartialEq for AdminCreateIdentityBody
Auto Trait Implementations
impl RefUnwindSafe for AdminCreateIdentityBody
impl Send for AdminCreateIdentityBody
impl Sync for AdminCreateIdentityBody
impl Unpin for AdminCreateIdentityBody
impl UnwindSafe for AdminCreateIdentityBody
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more