pub struct UpdateUserRequest {
pub display_name: Option<String>,
pub role: Option<UserRole>,
pub is_active: Option<bool>,
}Expand description
Body for PATCH /api/v1/users/{id}. All fields are optional so a caller
can update a single attribute without touching the others.
Fields§
§display_name: Option<String>§role: Option<UserRole>§is_active: Option<bool>Trait Implementations§
Source§impl ComposeSchema for UpdateUserRequest
impl ComposeSchema for UpdateUserRequest
Source§impl Debug for UpdateUserRequest
impl Debug for UpdateUserRequest
Source§impl<'de> Deserialize<'de> for UpdateUserRequest
impl<'de> Deserialize<'de> for UpdateUserRequest
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 Serialize for UpdateUserRequest
impl Serialize for UpdateUserRequest
Auto Trait Implementations§
impl Freeze for UpdateUserRequest
impl RefUnwindSafe for UpdateUserRequest
impl Send for UpdateUserRequest
impl Sync for UpdateUserRequest
impl Unpin for UpdateUserRequest
impl UnsafeUnpin 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