pub struct ClientContext {
pub ip: Option<String>,
pub ptr: Option<String>,
pub user_agent: Option<String>,
pub request_id: Option<String>,
}Expand description
The request a row came from: address, its reverse name, and the two headers worth keeping.
Entirely empty for ActorKind::Cli and ActorKind::System, which is
why every field is optional rather than a placeholder string — “there was no
client” and “the client sent no User-Agent” are both None, and the
actor_kind on the row already tells them apart.
Fields§
§ip: Option<String>§ptr: Option<String>§user_agent: Option<String>§request_id: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ClientContext
impl Clone for ClientContext
Source§impl Debug for ClientContext
impl Debug for ClientContext
Source§impl Default for ClientContext
impl Default for ClientContext
impl Eq for ClientContext
Source§impl PartialEq for ClientContext
impl PartialEq for ClientContext
impl StructuralPartialEq for ClientContext
Auto Trait Implementations§
impl Freeze for ClientContext
impl RefUnwindSafe for ClientContext
impl Send for ClientContext
impl Sync for ClientContext
impl Unpin for ClientContext
impl UnsafeUnpin for ClientContext
impl UnwindSafe for ClientContext
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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