pub struct HttpErrorReporter { /* private fields */ }Expand description
HTTP error reporter that sends errors to an HTTP endpoint
Implementationsยง
Sourceยงimpl HttpErrorReporter
impl HttpErrorReporter
Sourcepub fn with_api_key(self, api_key: impl Into<String>) -> Self
pub fn with_api_key(self, api_key: impl Into<String>) -> Self
Create a new HTTP error reporter with API key
Sourcepub fn has_api_key(&self) -> bool
pub fn has_api_key(&self) -> bool
Check if API key is set
Trait Implementationsยง
Sourceยงimpl ErrorReporter for HttpErrorReporter
impl ErrorReporter for HttpErrorReporter
Sourceยงfn report_error(&self, error: &FormError, context: &ErrorContext)
fn report_error(&self, error: &FormError, context: &ErrorContext)
Report an error to external service
Auto Trait Implementationsยง
impl Freeze for HttpErrorReporter
impl RefUnwindSafe for HttpErrorReporter
impl Send for HttpErrorReporter
impl Sync for HttpErrorReporter
impl Unpin for HttpErrorReporter
impl UnsafeUnpin for HttpErrorReporter
impl UnwindSafe for HttpErrorReporter
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
Sourceยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Sourceยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Sourceยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.