pub struct ClientContext {
pub ip_address: Option<String>,
pub user_agent: Option<String>,
}Expand description
Untrusted client metadata used only for stale-retry classification, never device authentication.
Fields§
§ip_address: Option<String>IP already normalized by the product’s trusted-proxy boundary.
user_agent: Option<String>User agent supplied by the client; matching it is not proof of identity.
Trait Implementations§
Source§impl Clone for ClientContext
impl Clone for ClientContext
Source§fn clone(&self) -> ClientContext
fn clone(&self) -> ClientContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientContext
impl Debug for ClientContext
Source§impl Default for ClientContext
impl Default for ClientContext
Source§fn default() -> ClientContext
fn default() -> ClientContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClientContext
impl PartialEq for ClientContext
impl Eq 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<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