Struct Record
pub struct Record<'a> {
pub level: Level,
pub source: &'static str,
pub message: &'a str,
pub workflow_id: Option<&'a str>,
pub workflow_type: Option<&'a str>,
pub run: Option<u64>,
pub step: Option<&'a str>,
pub attempt: Option<u32>,
}Expand description
One log record.
Fields§
§level: Level§source: &'static strfusee for the engine’s own records, workflow for ctx.log().
message: &'a str§workflow_id: Option<&'a str>§workflow_type: Option<&'a str>§run: Option<u64>§step: Option<&'a str>The step whose function logged, if any.
attempt: Option<u32>Implementations§
Trait Implementations§
impl<'a> Copy for Record<'a>
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnsafeUnpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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