lemon_bugsnag_rs 0.1.2

A library for interacting with the BugSnag error-reporting and sessions APIs.
Documentation
/// Struct which holds the data required to populate the `events -> app` key
/// of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{App, AppBuilder};
/// ```
pub mod app;
pub use app::App;
#[cfg(feature = "optional-builders")]
pub use app::AppBuilder;
/// Struct which holds the data required to populate the `events -> breadcrumb`
/// key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{
///   Breadcrumb,
///   BreadcrumbBuilder
/// };
/// ```
pub mod breadcrumb;
pub use breadcrumb::Breadcrumb;
#[cfg(feature = "optional-builders")]
pub use breadcrumb::BreadcrumbBuilder;
/// Struct which holds the data required to populate the `events -> device`
/// key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{Device, DeviceBuilder};
/// ```
pub mod device;
pub use device::Device;
#[cfg(feature = "optional-builders")]
pub use device::DeviceBuilder;
/// Struct which holds the enums required for various fields for the BugSnag
/// error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::enums::{
///   BinaryArch,
///   BreadcrumbType,
///   RuntimeType,
///   Severity,
///   SeverityReasonType
/// };
/// ```
pub mod enums;
pub use enums::{
    BinaryArch, BreadcrumbType, RuntimeType, Severity, SeverityReasonType,
};
/// Struct and builder for error payload [crate::error::payload::events::Event]s.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{Event, EventBuilder};
/// ```
pub mod event;
pub use event::Event;
#[cfg(feature = "optional-builders")]
pub use event::EventBuilder;
/// Struct which holds the data required to populate the `events -> exceptions`
/// key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{Exception, ExceptionBuilder};
/// ```
pub mod exception;
pub use exception::Exception;
#[cfg(feature = "optional-builders")]
pub use exception::ExceptionBuilder;
/// Struct which holds the data required to populate the `events ->
/// feature_flag` key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::FeatureFlag;
/// ```
pub mod feature_flag;
pub use feature_flag::FeatureFlag;
/// Struct which holds the data required to populate the `events -> request` key
/// of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{Request, RequestBuilder};
/// ```
pub mod request;
pub use request::Request;
#[cfg(feature = "optional-builders")]
pub use request::RequestBuilder;
/// Struct which holds the data required to populate the `events -> device ->
/// runtime_version` key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{RuntimeVersion, RuntimeVersionBuilder};
/// ```
pub mod runtime_version;
pub use runtime_version::RuntimeVersion;
#[cfg(feature = "optional-builders")]
pub use runtime_version::RuntimeVersionBuilder;
/// Struct which holds the data required to populate the `events -> session` key
/// of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{Session, SessionBuilder};
/// ```
pub mod session;
pub use session::Session;
#[cfg(feature = "optional-builders")]
pub use session::SessionBuilder;
/// Struct which holds the data required to populate the `events ->
/// severity_reason` key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{
///   SeverityReason,
///   SeverityReasonBuilder
/// };
/// ```
pub mod severity_reason;
pub use severity_reason::SeverityReason;
#[cfg(feature = "optional-builders")]
pub use severity_reason::SeverityReasonBuilder;
/// Struct which holds the data required to populate the `events ->
/// severity_reason -> attributes` key of the BugSnag error-reporting API
/// payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{
///   SeverityReasonAttribute,
///   SeverityReasonAttributeBuilder
/// };
/// ```
pub mod severity_reason_attribute;
pub use severity_reason_attribute::SeverityReasonAttribute;
#[cfg(feature = "optional-builders")]
pub use severity_reason_attribute::SeverityReasonAttributeBuilder;
/// Struct which holds the data required to populate the `events -> stack_trace`
/// key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{
///   StackTrace,
///   StackTraceBuilder
/// };
/// ```
pub mod stack_trace;
pub use stack_trace::StackTrace;
#[cfg(feature = "optional-builders")]
pub use stack_trace::StackTraceBuilder;
/// Struct which holds the data required to populate the `events -> stack_trace
/// -> code` key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{
///   StackTraceCode,
///   StackTraceCodeBuilder
/// };
/// ```
pub mod stack_trace_code;
pub use stack_trace_code::StackTraceCode;
#[cfg(feature = "optional-builders")]
pub use stack_trace_code::StackTraceCodeBuilder;
/// Struct which holds the data required to populate the `events -> threads`
/// key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{
///   Thread,
///   ThreadBuilder
/// };
/// ```
pub mod thread;
pub use thread::Thread;
#[cfg(feature = "optional-builders")]
pub use thread::ThreadBuilder;
/// Struct which holds the data required to populate the `events -> user`
/// key of the BugSnag error-reporting API payload.
///
/// ```
/// use lemon_bugsnag_rs::error::payload::events::{
///   User,
///   UserBuilder
/// };
/// ```
pub mod user;
pub use user::User;
#[cfg(feature = "optional-builders")]
pub use user::UserBuilder;