pub struct StoredUser {
pub id: i64,
pub email: String,
pub password_hash: String,
pub role: Role,
pub is_active: bool,
pub is_demo: bool,
pub demo_label: Option<String>,
pub must_change_password: bool,
}Fields§
§id: i64§email: String§password_hash: String§role: Role§is_active: bool§is_demo: bool§demo_label: Option<String>§must_change_password: boolMirrors rustio_users.must_change_password. The R2 login flow
(commit #9) reads this through find_user_by_email to decide
whether to set must_change_password on the freshly-issued
Identity; when the flag is set the user is redirected
immediately to /admin/must-change-password after sign-in.
Auto Trait Implementations§
impl Freeze for StoredUser
impl RefUnwindSafe for StoredUser
impl Send for StoredUser
impl Sync for StoredUser
impl Unpin for StoredUser
impl UnsafeUnpin for StoredUser
impl UnwindSafe for StoredUser
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
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