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>,
}
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>
Arbitrary breadcrumb data that should be send along.
Trait Implementations
sourceimpl Clone for Breadcrumb
impl Clone for Breadcrumb
sourcepub fn clone(&self) -> Breadcrumb
pub fn clone(&self) -> Breadcrumb
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Breadcrumb
impl Debug for Breadcrumb
sourceimpl Default for Breadcrumb
impl Default for Breadcrumb
sourcepub fn default() -> Breadcrumb
pub fn default() -> Breadcrumb
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Breadcrumb
impl<'de> Deserialize<'de> for Breadcrumb
sourcepub 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
sourceimpl 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.
sourceimpl PartialEq<Breadcrumb> for Breadcrumb
impl PartialEq<Breadcrumb> for Breadcrumb
sourcepub fn eq(&self, other: &Breadcrumb) -> bool
pub fn eq(&self, other: &Breadcrumb) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &Breadcrumb) -> bool
pub fn ne(&self, other: &Breadcrumb) -> bool
This method tests for !=
.
sourceimpl Serialize for Breadcrumb
impl Serialize for Breadcrumb
sourcepub 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
impl StructuralPartialEq for Breadcrumb
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more