Struct hotg_rune_core::SerializableRecord
source · [−]pub struct SerializableRecord<'a> {
pub level: Level,
pub message: Cow<'a, str>,
pub target: Cow<'a, str>,
pub module_path: Option<Cow<'a, str>>,
pub file: Option<Cow<'a, str>>,
pub line: Option<u32>,
}
Expand description
A serializable version of log::Record
.
Fields
level: Level
message: Cow<'a, str>
target: Cow<'a, str>
module_path: Option<Cow<'a, str>>
file: Option<Cow<'a, str>>
line: Option<u32>
Implementations
sourceimpl<'a> SerializableRecord<'a>
impl<'a> SerializableRecord<'a>
pub fn into_owned(self) -> SerializableRecord<'static>
pub fn with_record<F, R>(&self, f: F) -> R where
F: FnOnce(&Record<'_>) -> R,
Trait Implementations
sourceimpl<'a> Debug for SerializableRecord<'a>
impl<'a> Debug for SerializableRecord<'a>
sourceimpl<'a> Default for SerializableRecord<'a>
impl<'a> Default for SerializableRecord<'a>
sourceimpl<'de, 'a> Deserialize<'de> for SerializableRecord<'a>
impl<'de, 'a> Deserialize<'de> for SerializableRecord<'a>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> From<&'a Record<'a>> for SerializableRecord<'a>
impl<'a> From<&'a Record<'a>> for SerializableRecord<'a>
sourceimpl<'a> PartialEq<SerializableRecord<'a>> for SerializableRecord<'a>
impl<'a> PartialEq<SerializableRecord<'a>> for SerializableRecord<'a>
sourcefn eq(&self, other: &SerializableRecord<'a>) -> bool
fn eq(&self, other: &SerializableRecord<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SerializableRecord<'a>) -> bool
fn ne(&self, other: &SerializableRecord<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for SerializableRecord<'a>
impl<'a> Serialize for SerializableRecord<'a>
impl<'a> StructuralPartialEq for SerializableRecord<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SerializableRecord<'a>
impl<'a> Send for SerializableRecord<'a>
impl<'a> Sync for SerializableRecord<'a>
impl<'a> Unpin for SerializableRecord<'a>
impl<'a> UnwindSafe for SerializableRecord<'a>
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