#[non_exhaustive]pub struct AdminConfig {
pub secure_cookie: bool,
pub timezone: String,
pub locale: String,
pub app_name: String,
pub path: String,
pub origin: String,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.Set the Secure attribute on the session cookie. Enable behind HTTPS in
production; leave off for plain-HTTP local development.
timezone: StringDefault display timezone for the admin (an IANA name like Asia/Kolkata).
Storage is UTC; this only affects rendering. Invalid or empty falls back
to UTC. An operator’s own preference overrides it (later).
locale: StringDefault UI locale for the admin (a base tag like en or de). An
operator’s own preference and the request’s Accept-Language override it;
a locale with no loaded catalog, or an empty value, falls back to en.
app_name: StringThe application name, shown as the admin brand. This is the baseline; a
BrandSetting in the admin overrides it. Typically the configured
app.name. Empty falls back to Laterite.
path: StringThe URL path the panel is mounted under (typically the configured
backend.path). A leading slash is added if missing and a trailing slash
is stripped; empty falls back to /admin.
origin: StringThe public origin (scheme://host[:port], no trailing slash) the panel is
served from, for the CSRF origin check. Typically the configured
app.url; empty falls back to the request Host (dev only), so set it in
production.
Trait Implementations§
Source§impl Clone for AdminConfig
impl Clone for AdminConfig
Source§fn clone(&self) -> AdminConfig
fn clone(&self) -> AdminConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AdminConfig
impl RefUnwindSafe for AdminConfig
impl Send for AdminConfig
impl Sync for AdminConfig
impl Unpin for AdminConfig
impl UnsafeUnpin for AdminConfig
impl UnwindSafe for AdminConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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