pub struct Environment {
pub PR_TRACKER_API_DATABASE_URL: String,
pub PR_TRACKER_API_PORT: u16,
}
Expand description
See documentation for each field.
Fields§
§PR_TRACKER_API_DATABASE_URL: String
§PR_TRACKER_API_PORT: u16
Port to listen on.
Trait Implementations§
source§impl Config for Environment
impl Config for Environment
source§type Partial = PartialEnvironment
type Partial = PartialEnvironment
A version of
Self
that represents a potetially partial configuration. Read moresource§fn from_partial(partial: Self::Partial) -> Result<Self, Error>
fn from_partial(partial: Self::Partial) -> Result<Self, Error>
Tries to create
Self
from a potentially partial object and validates
itself. Read more§fn builder() -> Builder<Self>
fn builder() -> Builder<Self>
Convenience builder to configure, load and merge multiple configuration
sources. Sources specified earlier have a higher priority; later
sources only fill in the gaps. After all sources have been loaded, the
default values (usually specified with
#[default = ...]
) are merged
(with the lowest priority). Read moreAuto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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