pub struct ErrorsIntakeConfig {
pub direct_submission_enabled: bool,
pub debug_enabled: bool,
pub errors_intake_enabled: bool,
/* private fields */
}Fields§
§direct_submission_enabled: bool§debug_enabled: bool§errors_intake_enabled: boolImplementations§
Source§impl ErrorsIntakeConfig
impl ErrorsIntakeConfig
pub fn endpoint(&self) -> Option<&Endpoint>
pub fn is_errors_intake_enabled(&self) -> bool
pub fn set_endpoint(&mut self, endpoint: Endpoint) -> Result<()>
pub fn from_settings(settings: &ErrorsIntakeSettings) -> Self
pub fn from_env() -> Self
pub fn set_host_from_url(&mut self, host_url: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for ErrorsIntakeConfig
impl Clone for ErrorsIntakeConfig
Source§fn clone(&self) -> ErrorsIntakeConfig
fn clone(&self) -> ErrorsIntakeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorsIntakeConfig
impl Debug for ErrorsIntakeConfig
Source§impl Default for ErrorsIntakeConfig
impl Default for ErrorsIntakeConfig
Source§fn default() -> ErrorsIntakeConfig
fn default() -> ErrorsIntakeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorsIntakeConfig
impl<'de> Deserialize<'de> for ErrorsIntakeConfig
Source§fn 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 !Freeze for ErrorsIntakeConfig
impl RefUnwindSafe for ErrorsIntakeConfig
impl Send for ErrorsIntakeConfig
impl Sync for ErrorsIntakeConfig
impl Unpin for ErrorsIntakeConfig
impl UnsafeUnpin for ErrorsIntakeConfig
impl UnwindSafe for ErrorsIntakeConfig
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