Struct limiting_factor::config::DefaultConfig [−][src]
pub struct DefaultConfig { /* fields omitted */ }
Expand description
This is a default 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 methodsDATABASE_URL
(mandatory): the URL to connect to your databaseDATABASE_POOL_SIZE
(facultative, by default 4): the number of connections to open
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DefaultConfig
impl Send for DefaultConfig
impl Sync for DefaultConfig
impl Unpin for DefaultConfig
impl UnwindSafe for DefaultConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more