1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/// This module exports structs and traits that are shared by Error and Session
/// clients.
///
/// # Example imports
/// ```
/// use lemon_bugsnag_rs::common::builder::{
/// client_builder,
/// error
/// };
/// ```
/// Structs and Enums common to multiple types of client.
///
/// # Example imports
/// ```
/// use lemon_bugsnag_rs::common::client::{
/// client_type
/// };
/// ```
pub
/// Structs and code related to error-handling, with a focus on being able to
/// consolidate mutiple types of errors from multiple sources into a single,
/// consistent error type.
///
/// # Example imports
/// ```
/// use lemon_bugsnag_rs::common::error::{
/// Error,
/// ErrorStack
/// };
/// ```
/// Contains various shared traits for clients and builders.
/// # Example imports
/// ```
/// use lemon_bugsnag_rs::common::traits::{
/// backend_builder_trait_sync,
/// backend_builder_trait_async,
/// client_trait_sync,
/// client_trait_async,
/// decider_trait_sync,
/// decider_trait_async,
/// };
/// ```
/// Convenient bundle of traits necessary for building API clients.
///
/// ```
/// // This will import all of the traits and structs you need to get started
/// // building and sending a payload.
/// use lemon_bugsnag_rs::common::bundle::*;
///
/// // You can also choose to individually import the items found in the
/// // bundle
/// //
/// // use lemon_bugsnag_rs::common::builder::client_builder::ClientBuilder;
/// // use lemon_bugsnag_rs::common::traits::decider_trait_async::DeciderTraitAsync;
/// // use lemon_bugsnag_rs::common::traits::client_trait_async::ClientTraitAsync;
/// // use lemon_bugsnag_rs::common::traits::backend_builder_trait_async::BackendBuilderTraitAsync;
/// //
/// // use lemon_bugsnag_rs::common::traits::decider_trait_sync::DeciderTraitSync;
/// // use lemon_bugsnag_rs::common::traits::client_trait_sync::ClientTraitSync;
/// // use lemon_bugsnag_rs::common::traits::backend_builder_trait_sync::BackendBuilderTraitSync;
/// ```