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 mouting point of the API methods
It sets the server not to use a database.
Trait Implementations
sourceimpl 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>
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.