pub struct TraceMeta;Expand description
Builder of RunnableConfig.metadata entries with strongly-named helpers.
Implementations§
Source§impl TraceMeta
impl TraceMeta
Sourcepub fn session(id: impl Into<String>) -> (&'static str, Value)
pub fn session(id: impl Into<String>) -> (&'static str, Value)
Build a (key, value) pair for session_id.
Sourcepub fn user(id: impl Into<String>) -> (&'static str, Value)
pub fn user(id: impl Into<String>) -> (&'static str, Value)
Build a (key, value) pair for user_id.
Sourcepub fn release(s: impl Into<String>) -> (&'static str, Value)
pub fn release(s: impl Into<String>) -> (&'static str, Value)
Build a (key, value) pair for release.
Sourcepub fn environment(s: impl Into<String>) -> (&'static str, Value)
pub fn environment(s: impl Into<String>) -> (&'static str, Value)
Build a (key, value) pair for environment.
Auto Trait Implementations§
impl Freeze for TraceMeta
impl RefUnwindSafe for TraceMeta
impl Send for TraceMeta
impl Sync for TraceMeta
impl Unpin for TraceMeta
impl UnsafeUnpin for TraceMeta
impl UnwindSafe for TraceMeta
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