Struct limiting_factor::config::MinimalConfig
source · pub struct MinimalConfig { /* private fields */ }
Expand description
This is a minimal implementation of the Config
trait, which extracts the following variables
from an .env file or environment:
API_ENTRY_POINT
(facultative, by default/
): the mounting point of the API methods
It sets the server not to use a database.
Trait Implementations§
source§impl Config for MinimalConfig
impl Config for MinimalConfig
fn get_database_url(&self) -> &str
fn get_entry_point(&self) -> &str
fn get_database_pool_size(&self) -> u32
fn with_database(&self) -> bool
fn into_service(self, routes: Vec<Route>) -> Box<dyn Service>
source§impl EnvironmentConfigurable for MinimalConfig
impl EnvironmentConfigurable for MinimalConfig
fn parse_environment() -> ErrorResult<Self>
Auto Trait Implementations§
impl RefUnwindSafe for MinimalConfig
impl Send for MinimalConfig
impl Sync for MinimalConfig
impl Unpin for MinimalConfig
impl UnwindSafe for MinimalConfig
Blanket Implementations§
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.