pub struct Step {
pub ty: StepType,
pub title: String,
pub message: String,
pub level: Level,
pub body: Option<BTreeMap<String, Value>>,
}Expand description
Represents an step done previous to an event. It gets internally converted to a sentry breadcrumb.
let step = Step {
ty: StepType::Error,
title: "Bad request".into(),
message: "Mike made a bad request".into(),
level: LogLevel::Info,
body: None,
};
logger::track_step(step);Fields§
§ty: StepType§title: String§message: String§level: Level§body: Option<BTreeMap<String, Value>>Trait Implementations§
Source§impl Into<Breadcrumb> for Step
impl Into<Breadcrumb> for Step
Source§fn into(self) -> Breadcrumb
fn into(self) -> Breadcrumb
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more