pub struct CreateIdentityParams {
pub schema_id: String,
pub traits: IdentityTraitsInput,
pub credentials: Option<Value>,
pub state: Option<String>,
}Expand description
Parameters for IdentitiesClient::create.
§Example
use nautilus_rs::{Gate, CreateIdentityParams, IdentityTraitsInput};
let gate = Gate::new("vrn_gate_live_sk_…");
let identity = gate.identities().create(CreateIdentityParams {
schema_id: "default".into(),
traits: IdentityTraitsInput {
email: "alice@example.com".into(),
custom_data: None,
},
credentials: None,
state: Some("active".into()),
}).await?;
println!("created: {}", identity.id);Fields§
§schema_id: StringSchema identifier the identity should conform to.
traits: IdentityTraitsInputProfile traits for the new identity.
credentials: Option<Value>Optional credential material (passwords, OIDC tokens, …) in the format expected by the schema.
state: Option<String>Initial lifecycle state. Defaults to the schema default when None.
Trait Implementations§
Source§impl Clone for CreateIdentityParams
impl Clone for CreateIdentityParams
Source§fn clone(&self) -> CreateIdentityParams
fn clone(&self) -> CreateIdentityParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateIdentityParams
impl Debug for CreateIdentityParams
Auto Trait Implementations§
impl Freeze for CreateIdentityParams
impl RefUnwindSafe for CreateIdentityParams
impl Send for CreateIdentityParams
impl Sync for CreateIdentityParams
impl Unpin for CreateIdentityParams
impl UnsafeUnpin for CreateIdentityParams
impl UnwindSafe for CreateIdentityParams
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