Struct sentry_core::protocol::Breadcrumb
source · [−]pub struct Breadcrumb {
pub timestamp: SystemTime,
pub ty: String,
pub category: Option<String>,
pub level: Level,
pub message: Option<String>,
pub data: BTreeMap<String, Value>,
}
Expand description
Represents a single breadcrumb.
Fields
timestamp: SystemTime
The timestamp of the breadcrumb. This is required.
ty: String
The type of the breadcrumb.
category: Option<String>
The optional category of the breadcrumb.
level: Level
The non optional level of the breadcrumb. It defaults to info.
message: Option<String>
An optional human readbale message for the breadcrumb.
data: BTreeMap<String, Value>
Arbitrary breadcrumb data that should be send along.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Breadcrumb, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Breadcrumb, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
type Output = Once<Breadcrumb>
type Output = Once<Breadcrumb>
The iterator type for the breadcrumbs.
This converts the object into an optional breadcrumb.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Breadcrumb
impl Send for Breadcrumb
impl Sync for Breadcrumb
impl Unpin for Breadcrumb
impl UnwindSafe for Breadcrumb
Blanket Implementations
Mutably borrows from an owned value. Read more