pub struct UserCredentialsUpdate {
pub old_username: String,
pub old_password: String,
pub new_username: String,
pub new_password: String,
pub two_factor_code: String,
}Expand description
Current and replacement panel credentials.
Fields§
§old_username: StringCurrent username.
old_password: StringCurrent password.
new_username: StringReplacement username.
new_password: StringReplacement password.
two_factor_code: StringCurrent 2FA code when enabled.
Trait Implementations§
Source§impl Clone for UserCredentialsUpdate
impl Clone for UserCredentialsUpdate
Source§impl Debug for UserCredentialsUpdate
impl Debug for UserCredentialsUpdate
Auto Trait Implementations§
impl Freeze for UserCredentialsUpdate
impl RefUnwindSafe for UserCredentialsUpdate
impl Send for UserCredentialsUpdate
impl Sync for UserCredentialsUpdate
impl Unpin for UserCredentialsUpdate
impl UnsafeUnpin for UserCredentialsUpdate
impl UnwindSafe for UserCredentialsUpdate
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> 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