Struct sentry::application::EnvConfig
source · pub struct EnvConfig {
pub env: Environment,
pub port: u16,
pub ip_addr: IpAddr,
pub redis_url: ConnectionInfo,
pub seed_db: bool,
}
Expand description
Sentry Application config set by environment variables
Fields
env: Environment
Defaults to Development
: [Environment::default()
]
port: u16
The port on which the Sentry REST API will be accessible.
Defaults to 8005
: DEFAULT_PORT
ip_addr: IpAddr
The address on which the Sentry REST API will be accessible.
0.0.0.0
can be used for Docker.
127.0.0.1
can be used for locally running servers.
Defaults to 0.0.0.0
: DEFAULT_IP_ADDR
redis_url: ConnectionInfo
Defaults to locally running Redis server: DEFAULT_REDIS_URL
seed_db: bool
Whether or not to seed the database in [Environment::Development
].
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for EnvConfig
impl<'de> Deserialize<'de> for EnvConfig
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for EnvConfig
impl Send for EnvConfig
impl Sync for EnvConfig
impl Unpin for EnvConfig
impl UnwindSafe for EnvConfig
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