Struct sentry::Breadcrumb [−][src]
pub struct Breadcrumb { pub timestamp: DateTime<Utc>, pub ty: String, pub category: Option<String>, pub level: Level, pub message: Option<String>, pub data: LinkedHashMap<String, Value, RandomState>, }
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: LinkedHashMap<String, Value, RandomState>
Arbitrary breadcrumb data that should be send along.
Trait Implementations
impl Clone for Breadcrumb
[src]
impl Clone for Breadcrumb
fn clone(&self) -> Breadcrumb
[src]
fn clone(&self) -> Breadcrumb
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Breadcrumb
[src]
impl Default for Breadcrumb
fn default() -> Breadcrumb
[src]
fn default() -> Breadcrumb
Returns the "default value" for a type. Read more
impl Debug for Breadcrumb
[src]
impl Debug for Breadcrumb
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Serialize for Breadcrumb
[src]
impl Serialize for Breadcrumb
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
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
impl<'de> Deserialize<'de> for Breadcrumb where
Breadcrumb: Default,
[src]
impl<'de> Deserialize<'de> for Breadcrumb where
Breadcrumb: Default,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Breadcrumb, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
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
impl PartialEq<Breadcrumb> for Breadcrumb
[src]
impl PartialEq<Breadcrumb> for Breadcrumb
fn eq(&self, other: &Breadcrumb) -> bool
[src]
fn eq(&self, other: &Breadcrumb) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Breadcrumb) -> bool
[src]
fn ne(&self, other: &Breadcrumb) -> bool
This method tests for !=
.
impl IntoBreadcrumbs for Breadcrumb
[src]
impl IntoBreadcrumbs for Breadcrumb
type Output = Once<Breadcrumb>
The iterator type for the breadcrumbs.
This converts the object into an optional breadcrumb.
Auto Trait Implementations
impl Send for Breadcrumb
impl Send for Breadcrumb
impl Sync for Breadcrumb
impl Sync for Breadcrumb