pub struct AppSettings {
pub telemetry_uuid: Option<Uuid>,
pub telemetry_cron_schedule: Option<Schedule>,
pub oobe_step: Option<CompactString>,
pub storage_driver: StorageDriver,
pub mail_mode: MailMode,
pub captcha_provider: CaptchaProvider,
pub app: AppSettingsApp,
pub webauthn: AppSettingsWebauthn,
pub server: AppSettingsServer,
pub activity: AppSettingsActivity,
pub extensions: HashMap<&'static str, ExtensionSettings>,
}Fields§
§telemetry_uuid: Option<Uuid>§telemetry_cron_schedule: Option<Schedule>§oobe_step: Option<CompactString>§storage_driver: StorageDriver§mail_mode: MailMode§captcha_provider: CaptchaProvider§app: AppSettingsApp§webauthn: AppSettingsWebauthn§server: AppSettingsServer§activity: AppSettingsActivity§extensions: HashMap<&'static str, ExtensionSettings>Implementations§
Source§impl AppSettings
impl AppSettings
pub fn get_extension_settings<T: 'static>( &self, ext_identifier: &str, ) -> Result<&T, Error>
pub fn get_mut_extension_settings<T: 'static>( &mut self, ext_identifier: &str, ) -> Result<&mut T, Error>
pub fn find_extension_settings<T: 'static>(&self) -> Result<&T, Error>
pub fn find_mut_extension_settings<T: 'static>( &mut self, ) -> Result<&mut T, Error>
Trait Implementations§
Source§impl ComposeSchema for AppSettings
impl ComposeSchema for AppSettings
Source§impl<'de> Deserialize<'de> for AppSettings
impl<'de> Deserialize<'de> for AppSettings
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 Serialize for AppSettings
impl Serialize for AppSettings
Source§impl SettingsSerializeExt for AppSettings
impl SettingsSerializeExt for AppSettings
Auto Trait Implementations§
impl Freeze for AppSettings
impl !RefUnwindSafe for AppSettings
impl Send for AppSettings
impl Sync for AppSettings
impl Unpin for AppSettings
impl !UnwindSafe for AppSettings
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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