pub struct RawApiWebEnv {
pub api_host: Option<String>,
pub api_port: Option<u16>,
pub web_port: Option<u16>,
pub cors_allowed_origins: Option<String>,
pub web_session_cookie_name: Option<String>,
pub web_csrf_cookie_name: Option<String>,
pub web_session_ttl_hours: Option<i64>,
pub web_session_cookie_secure: Option<bool>,
}Expand description
Raw API and web environment values.
Fields§
§api_host: Option<String>§api_port: Option<u16>§web_port: Option<u16>§cors_allowed_origins: Option<String>§web_session_ttl_hours: Option<i64>Trait Implementations§
Source§impl Clone for RawApiWebEnv
impl Clone for RawApiWebEnv
Source§fn clone(&self) -> RawApiWebEnv
fn clone(&self) -> RawApiWebEnv
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 RawApiWebEnv
impl Debug for RawApiWebEnv
Source§impl Default for RawApiWebEnv
impl Default for RawApiWebEnv
Source§fn default() -> RawApiWebEnv
fn default() -> RawApiWebEnv
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RawApiWebEnv
impl<'de> Deserialize<'de> for RawApiWebEnv
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 RawApiWebEnv
impl RefUnwindSafe for RawApiWebEnv
impl Send for RawApiWebEnv
impl Sync for RawApiWebEnv
impl Unpin for RawApiWebEnv
impl UnsafeUnpin for RawApiWebEnv
impl UnwindSafe for RawApiWebEnv
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 moreCreates a shared type from an unshared type.