pub struct PanelSettingsView {
pub settings: PanelSettings,
pub has_tg_bot_token: bool,
pub has_two_factor_token: bool,
pub has_ldap_password: bool,
pub has_api_token: bool,
pub has_warp_secret: bool,
pub has_nord_secret: bool,
pub has_discord_bot_token: bool,
pub has_smtp_password: bool,
}Expand description
Browser-safe settings view with secret-presence indicators.
Fields§
§settings: PanelSettingsRedacted settings.
has_tg_bot_token: boolA Telegram token is stored.
has_two_factor_token: boolA two-factor seed is stored.
has_ldap_password: boolAn LDAP password is stored.
has_api_token: boolAt least one API token exists.
has_warp_secret: boolWARP credentials are stored.
has_nord_secret: boolNordVPN credentials are stored.
has_discord_bot_token: boolA Discord bot token is stored.
has_smtp_password: boolAn SMTP password is stored.
Trait Implementations§
Source§impl Clone for PanelSettingsView
impl Clone for PanelSettingsView
Source§impl Debug for PanelSettingsView
impl Debug for PanelSettingsView
Source§impl Default for PanelSettingsView
impl Default for PanelSettingsView
Source§impl<'de> Deserialize<'de> for PanelSettingsViewwhere
PanelSettingsView: Default,
impl<'de> Deserialize<'de> for PanelSettingsViewwhere
PanelSettingsView: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PanelSettingsView
impl PartialEq for PanelSettingsView
Source§impl Serialize for PanelSettingsView
impl Serialize for PanelSettingsView
impl StructuralPartialEq for PanelSettingsView
Auto Trait Implementations§
impl Freeze for PanelSettingsView
impl RefUnwindSafe for PanelSettingsView
impl Send for PanelSettingsView
impl Sync for PanelSettingsView
impl Unpin for PanelSettingsView
impl UnsafeUnpin for PanelSettingsView
impl UnwindSafe for PanelSettingsView
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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