pub struct RecordBuilder<'a> { /* private fields */ }
Expand description
Builder for Record
.
Implementations§
Source§impl<'a> RecordBuilder<'a>
impl<'a> RecordBuilder<'a>
Sourcepub fn metadata(self, metadata: Metadata<'a>) -> Self
pub fn metadata(self, metadata: Metadata<'a>) -> Self
Set metadata
.
Construct a Metadata
object with MetadataBuilder
.
Sourcepub fn level(self, level: Level) -> Self
pub fn level(self, level: Level) -> Self
Set Metadata::level
.
Sourcepub fn target(self, target: &'a str) -> Self
pub fn target(self, target: &'a str) -> Self
Set Metadata::target
.
Sourcepub fn module_path(self, path: Option<&'a str>) -> Self
pub fn module_path(self, path: Option<&'a str>) -> Self
Set module_path
.
Sourcepub fn module_path_static(self, path: &'static str) -> Self
pub fn module_path_static(self, path: &'static str) -> Self
Set module_path
to a 'static
string.
Sourcepub fn file_static(self, file: &'static str) -> Self
pub fn file_static(self, file: &'static str) -> Self
Set file
to a 'static
string.
Sourcepub fn key_values(self, kvs: impl Into<KeyValues<'a>>) -> Self
pub fn key_values(self, kvs: impl Into<KeyValues<'a>>) -> Self
Set key_values
Trait Implementations§
Source§impl<'a> Debug for RecordBuilder<'a>
impl<'a> Debug for RecordBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for RecordBuilder<'a>
impl<'a> !RefUnwindSafe for RecordBuilder<'a>
impl<'a> !Send for RecordBuilder<'a>
impl<'a> !Sync for RecordBuilder<'a>
impl<'a> Unpin for RecordBuilder<'a>
impl<'a> !UnwindSafe for RecordBuilder<'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