pub struct Config { /* private fields */ }Expand description
Configuration settings for the client.
Implementations§
Source§impl Config
impl Config
pub fn new( service: String, environment: Option<String>, endpoint: String, logging_config: LoggingConfig, apm_config: ApmConfig, ) -> Self
pub fn service(&self) -> &str
pub fn environment(&self) -> Option<&str>
pub fn endpoint(&self) -> &str
pub fn logging_config(&self) -> &LoggingConfig
pub fn apm_config(&self) -> &ApmConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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