Struct rust_web_server::client_hint::ClientHint
source · pub struct ClientHint;
Implementations§
source§impl ClientHint
impl ClientHint
pub const ACCEPT_CLIENT_HINTS: &'static str = "Accept-CH"
pub const USER_AGENT_CPU_ARCHITECTURE: &'static str = "Sec-CH-UA-Arch"
pub const USER_AGENT_CPU_BITNESS: &'static str = "Sec-CH-UA-Bitness"
pub const USER_AGENT_FULL_BRAND_INFORMATION: &'static str = "Sec-CH-UA-Full-Version-List"
pub const USER_AGENT_DEVICE_MODEL: &'static str = "Sec-CH-UA-Model"
pub const USER_AGENT_OPERATING_SYSTEM_VERSION: &'static str = "Sec-CH-UA-Platform-Version"
pub const NETWORK_DOWNLOAD_SPEED: &'static str = "Downlink"
pub const NETWORK_EFFECTIVE_CONNECTION_TYPE: &'static str = "ECT"
pub const NETWORK_ROUND_TRIP_TIME: &'static str = "RTT"
pub const NETWORK_SAVE_DATA: &'static str = "Save-Data"
pub const DEVICE_MEMORY: &'static str = "Device-Memory"
pub fn get_client_hint_list() -> String
pub fn get_accept_client_hints_header() -> Header
pub fn get_vary_header_value() -> String
Trait Implementations§
source§impl Clone for ClientHint
impl Clone for ClientHint
source§fn clone(&self) -> ClientHint
fn clone(&self) -> ClientHint
Returns a copy 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 ClientHint
impl Debug for ClientHint
source§impl PartialEq<ClientHint> for ClientHint
impl PartialEq<ClientHint> for ClientHint
source§fn eq(&self, other: &ClientHint) -> bool
fn eq(&self, other: &ClientHint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.