Struct caesar::config::CaesarConfig
source · pub struct CaesarConfig {
pub app_environment: String,
pub app_host: String,
pub app_port: String,
pub app_origin: String,
pub app_relay: String,
pub rust_log: String,
}Expand description
Represents the configuration settings for the Caesar application.
This struct is used to store the configuration settings for the application, such as the environment, host, port, origin, and logging level.
Fields§
§app_environment: StringThe environment in which the application is running.
Possible values are “production”, “staging”, or “development”.
app_host: StringThe host on which the application is running.
This is typically an IP address or a hostname.
app_port: StringThe port on which the application is listening.
This is typically a string representation of a port number.
app_origin: StringThe origin of the application.
This is typically a URL that specifies the protocol, hostname, and port.
app_relay: StringThe relay endpoint of the application.
This is typically a combination of a hostname and port.
rust_log: StringThe logging level for the application.
This is typically a string representation of a logging level, such as “info”, “debug”, or “error”.
Trait Implementations§
source§impl Debug for CaesarConfig
impl Debug for CaesarConfig
source§impl Default for CaesarConfig
impl Default for CaesarConfig
The default configuration values for the Caesar application.
These values are used when loading the configuration file fails. The default configuration is suitable for running the application in a production environment.
source§fn default() -> Self
fn default() -> Self
Returns a new CaesarConfig instance with default values.
§Returns
A new CaesarConfig instance with the following default values:
app_environment: “production”app_host: “0.0.0.0”app_port: “8000”app_origin: “wss://caesar-transfer-iu.shuttleapp.rs”app_relay: “0.0.0.0:8000”rust_log: “info”
source§impl<'de> Deserialize<'de> for CaesarConfig
impl<'de> Deserialize<'de> for CaesarConfig
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>,
source§impl PartialEq for CaesarConfig
impl PartialEq for CaesarConfig
source§fn eq(&self, other: &CaesarConfig) -> bool
fn eq(&self, other: &CaesarConfig) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for CaesarConfig
impl Serialize for CaesarConfig
impl Eq for CaesarConfig
impl StructuralPartialEq for CaesarConfig
Auto Trait Implementations§
impl Freeze for CaesarConfig
impl RefUnwindSafe for CaesarConfig
impl Send for CaesarConfig
impl Sync for CaesarConfig
impl Unpin for CaesarConfig
impl UnwindSafe for CaesarConfig
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.