pub struct LogContext<'a> {
pub provider: &'a str,
pub model_id: &'a str,
pub call_kind: CallKind,
}Expand description
Identity + call shape, common to every event.
Fields§
§provider: &'a strWrapped model’s provider id.
model_id: &'a strWrapped model’s model id.
call_kind: CallKindWhether this call is a generate or a stream.
Trait Implementations§
Source§impl<'a> Clone for LogContext<'a>
impl<'a> Clone for LogContext<'a>
Source§fn clone(&self) -> LogContext<'a>
fn clone(&self) -> LogContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LogContext<'a>
impl<'a> Debug for LogContext<'a>
impl<'a> Copy for LogContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for LogContext<'a>
impl<'a> RefUnwindSafe for LogContext<'a>
impl<'a> Send for LogContext<'a>
impl<'a> Sync for LogContext<'a>
impl<'a> Unpin for LogContext<'a>
impl<'a> UnsafeUnpin for LogContext<'a>
impl<'a> UnwindSafe for LogContext<'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