pub struct UserUpdateScheme {
pub id: i16,
pub first_name: String,
pub last_name: String,
pub username: String,
pub make_admin: bool,
pub new_pwd: String,
}Expand description
Data transfer object (DTO) for updating an existing user’s information.
This struct is used to send updated user details, including an optional new password, to the backend for an existing user.
§Fields
id: The unique identifier of the user to be updated.first_name: The updated first name of the user.last_name: The updated last name of the user.username: The updated username for the user.make_admin: A boolean indicating whether to grant/revoke administrator privileges.new_pwd: An optional new password for the user. If empty, the password remains unchanged.
Fields§
§id: i16§first_name: String§last_name: String§username: String§make_admin: bool§new_pwd: StringTrait Implementations§
Source§impl Debug for UserUpdateScheme
impl Debug for UserUpdateScheme
Source§impl<'de> Deserialize<'de> for UserUpdateScheme
impl<'de> Deserialize<'de> for UserUpdateScheme
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
Auto Trait Implementations§
impl Freeze for UserUpdateScheme
impl RefUnwindSafe for UserUpdateScheme
impl Send for UserUpdateScheme
impl Sync for UserUpdateScheme
impl Unpin for UserUpdateScheme
impl UnwindSafe for UserUpdateScheme
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
§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.