pub struct SaveUserData {
pub username: Option<String>,
pub password: Option<String>,
pub fullname: Option<String>,
pub email: Option<String>,
pub usergroup: Option<u32>,
pub ip_restrict: Option<String>,
pub comments: Option<String>,
pub suggest: Option<bool>,
pub emailresetlink: Option<bool>,
pub approved: Option<u8>,
pub expires: Option<String>,
}Fields§
§username: Option<String>Username used to log into the account.
password: Option<String>Password for the account in plain text.
fullname: Option<String>Full display name of the user.
email: Option<String>Email address associated with the account.
usergroup: Option<u32>ID of the user group to assign the user to.
ip_restrict: Option<String>Optional IP restriction for the account. Can contain a single IP, or a wildcard pattern.
comments: Option<String>Administrative comments or notes about the user.
suggest: Option<bool>Whether the user should receive content suggestions.
emailresetlink: Option<bool>Whether to send the user a password reset link by email instead of setting a password directly.
approved: Option<u8>Approval state of the account.
expires: Option<String>Account expiry date in YYYY-MM-DD format, e.g. "2026-12-31".
Trait Implementations§
Source§impl Clone for SaveUserData
impl Clone for SaveUserData
Source§fn clone(&self) -> SaveUserData
fn clone(&self) -> SaveUserData
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 moreSource§impl Debug for SaveUserData
impl Debug for SaveUserData
Source§impl PartialEq for SaveUserData
impl PartialEq for SaveUserData
Source§impl Serialize for SaveUserData
impl Serialize for SaveUserData
impl StructuralPartialEq for SaveUserData
Auto Trait Implementations§
impl Freeze for SaveUserData
impl RefUnwindSafe for SaveUserData
impl Send for SaveUserData
impl Sync for SaveUserData
impl Unpin for SaveUserData
impl UnsafeUnpin for SaveUserData
impl UnwindSafe for SaveUserData
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