pub struct UpdateUserRequest { /* private fields */ }Expand description
Request to update user information
Implementations§
Source§impl UpdateUserRequest
impl UpdateUserRequest
Sourcepub fn new(
pin_uv_auth: Option<PinUvAuth>,
credential_id: Vec<u8>,
user: User,
) -> Self
pub fn new( pin_uv_auth: Option<PinUvAuth>, credential_id: Vec<u8>, user: User, ) -> Self
Create new update user information request
§Arguments
pin_uv_auth- Optional PIN/UV auth token with CredentialManagement permissioncredential_id- ID of credential to updateuser- New user information
§Important
- The user.id field MUST match the existing credential’s user ID
- Empty fields in user parameter are removed from the credential
- Only name and displayName are updated (id is not changed)
Sourcepub fn pin_uv_auth(&self) -> Option<&PinUvAuth>
pub fn pin_uv_auth(&self) -> Option<&PinUvAuth>
Get the PIN/UV auth bundle
Sourcepub fn credential_id(&self) -> &[u8] ⓘ
pub fn credential_id(&self) -> &[u8] ⓘ
Get the credential ID
Trait Implementations§
Source§impl Clone for UpdateUserRequest
impl Clone for UpdateUserRequest
Source§fn clone(&self) -> UpdateUserRequest
fn clone(&self) -> UpdateUserRequest
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 moreAuto Trait Implementations§
impl Freeze for UpdateUserRequest
impl RefUnwindSafe for UpdateUserRequest
impl Send for UpdateUserRequest
impl Sync for UpdateUserRequest
impl Unpin for UpdateUserRequest
impl UnwindSafe for UpdateUserRequest
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