pub struct UserUpdateRequest {
pub user_id: String,
pub role: UserRole,
pub credentials: Option<Credentials>,
}Expand description
Request parameters for updating a user
Fields§
§user_id: StringUser identifier (not serialized)
role: UserRoleNew role for the user (cannot be “admin”)
credentials: Option<Credentials>Credentials for authentication (not serialized)
Trait Implementations§
Source§impl Clone for UserUpdateRequest
impl Clone for UserUpdateRequest
Source§fn clone(&self) -> UserUpdateRequest
fn clone(&self) -> UserUpdateRequest
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 UserUpdateRequest
impl Debug for UserUpdateRequest
Auto Trait Implementations§
impl Freeze for UserUpdateRequest
impl RefUnwindSafe for UserUpdateRequest
impl Send for UserUpdateRequest
impl Sync for UserUpdateRequest
impl Unpin for UserUpdateRequest
impl UnwindSafe for UserUpdateRequest
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