Struct sentry::Breadcrumb
source · pub struct Breadcrumb {
pub timestamp: DateTime<Utc>,
pub ty: String,
pub category: Option<String>,
pub level: Level,
pub message: Option<String>,
pub data: BTreeMap<String, Value, Global>,
}
Expand description
Represents a single breadcrumb.
Fields§
§timestamp: DateTime<Utc>
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, Global>
Arbitrary breadcrumb data that should be send along.
Trait Implementations§
source§impl Clone for Breadcrumb
impl Clone for Breadcrumb
source§fn clone(&self) -> Breadcrumb
fn clone(&self) -> Breadcrumb
Returns a copy of the value. Read more
1.0.0 · 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 Breadcrumb
impl Debug for Breadcrumb
source§impl Default for Breadcrumb
impl Default for Breadcrumb
source§fn default() -> Breadcrumb
fn default() -> Breadcrumb
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Breadcrumb
impl<'de> Deserialize<'de> for Breadcrumb
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Breadcrumb, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
source§impl IntoBreadcrumbs for Breadcrumb
impl IntoBreadcrumbs for Breadcrumb
§type Output = Once<Breadcrumb>
type Output = Once<Breadcrumb>
The iterator type for the breadcrumbs.
This converts the object into an optional breadcrumb.
source§impl PartialEq<Breadcrumb> for Breadcrumb
impl PartialEq<Breadcrumb> for Breadcrumb
source§fn eq(&self, other: &Breadcrumb) -> bool
fn eq(&self, other: &Breadcrumb) -> bool
source§impl Serialize for Breadcrumb
impl Serialize for Breadcrumb
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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