pub struct PanelSettingsUpdate {
pub settings: PanelSettings,
pub two_factor_code: String,
pub clear_discord_bot_token: bool,
pub clear_tg_bot_token: bool,
pub clear_ldap_password: bool,
pub clear_smtp_password: bool,
}Expand description
Full-replacement settings update plus request-only secret controls.
Fields§
§settings: PanelSettingsComplete settings replacement.
two_factor_code: StringCurrent 2FA code, required when disabling 2FA.
clear_discord_bot_token: boolExplicitly clears the stored Discord bot token.
clear_tg_bot_token: boolExplicitly clears the stored Telegram token.
clear_ldap_password: boolExplicitly clears the stored LDAP password.
clear_smtp_password: boolExplicitly clears the stored SMTP password.
Implementations§
Source§impl PanelSettingsUpdate
impl PanelSettingsUpdate
Sourcepub fn new(settings: PanelSettings) -> Self
pub fn new(settings: PanelSettings) -> Self
Creates an update that preserves redacted blank secrets.
Trait Implementations§
Source§impl Clone for PanelSettingsUpdate
impl Clone for PanelSettingsUpdate
Source§impl Debug for PanelSettingsUpdate
impl Debug for PanelSettingsUpdate
Source§impl Default for PanelSettingsUpdate
impl Default for PanelSettingsUpdate
Auto Trait Implementations§
impl Freeze for PanelSettingsUpdate
impl RefUnwindSafe for PanelSettingsUpdate
impl Send for PanelSettingsUpdate
impl Sync for PanelSettingsUpdate
impl Unpin for PanelSettingsUpdate
impl UnsafeUnpin for PanelSettingsUpdate
impl UnwindSafe for PanelSettingsUpdate
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