pub struct BackendUser {
pub id: i64,
pub username: String,
pub email: String,
pub first_name: String,
pub last_name: Option<String>,
pub password_hash: String,
pub is_superuser: bool,
pub is_active: bool,
pub timezone: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A backend user: an operator of the admin surface.
Names follow the structured first_name plus optional last_name pair, the
same shape the wider ecosystem standardizes on so integrations and any
future extensions can rely on the same fields. password_hash is skipped in
serialization so an identity can be handed to a template or API response
without leaking the stored credential.
Fields§
§id: i64§username: String§email: String§first_name: String§last_name: Option<String>§password_hash: String§is_superuser: bool§is_active: bool§timezone: Option<String>The operator’s own display timezone as an IANA name (e.g. Asia/Kolkata).
None means the operator inherits the deployment default. Storage is
always UTC; this only affects how timestamps render for this operator.
created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Trait Implementations§
Source§impl Clone for BackendUser
impl Clone for BackendUser
Source§fn clone(&self) -> BackendUser
fn clone(&self) -> BackendUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackendUser
impl Debug for BackendUser
Auto Trait Implementations§
impl Freeze for BackendUser
impl RefUnwindSafe for BackendUser
impl Send for BackendUser
impl Sync for BackendUser
impl Unpin for BackendUser
impl UnsafeUnpin for BackendUser
impl UnwindSafe for BackendUser
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more