Struct witchcraft_log::Record
source · [−]pub struct Record<'a> { /* private fields */ }
Expand description
A log record.
Implementations
sourceimpl<'a> Record<'a>
impl<'a> Record<'a>
sourcepub fn builder() -> RecordBuilder<'a>
pub fn builder() -> RecordBuilder<'a>
Returns a RecordBuilder
initialized to default values.
sourcepub fn file(&self) -> Option<&'a str>
pub fn file(&self) -> Option<&'a str>
Returns the file containing the code that created the record.
sourcepub fn safe_params(&self) -> &'a [(&'static str, &dyn Serialize)]
pub fn safe_params(&self) -> &'a [(&'static str, &dyn Serialize)]
Returns the record’s safe-loggable parameters.
sourcepub fn unsafe_params(&self) -> &'a [(&'static str, &dyn Serialize)]
pub fn unsafe_params(&self) -> &'a [(&'static str, &dyn Serialize)]
Returns the record’s unsafe-loggable parameters.
Trait Implementations
Auto Trait Implementations
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> !UnwindSafe for Record<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more