pub struct AppOptions {
pub app: AppSection,
pub jwt: JwtSection,
pub cors: CorsSection,
pub tls: TlsSection,
}Expand description
Standard application options loaded from appsettings.json.
Bound automatically by the framework. Access via host.options()
or customize via app.useOptions(|o| { ... }).
Fields§
§app: AppSectionApplication settings.
jwt: JwtSectionJWT authentication settings.
cors: CorsSectionCORS settings.
tls: TlsSectionTLS settings.
Trait Implementations§
Source§impl Clone for AppOptions
impl Clone for AppOptions
Source§fn clone(&self) -> AppOptions
fn clone(&self) -> AppOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppOptions
impl Debug for AppOptions
Source§impl Default for AppOptions
impl Default for AppOptions
Source§fn default() -> AppOptions
fn default() -> AppOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AppOptions
impl<'de> Deserialize<'de> for AppOptions
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
Auto Trait Implementations§
impl Freeze for AppOptions
impl RefUnwindSafe for AppOptions
impl Send for AppOptions
impl Sync for AppOptions
impl Unpin for AppOptions
impl UnsafeUnpin for AppOptions
impl UnwindSafe for AppOptions
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