Struct google_chromeuxreport1::api::QueryRequest[][src]

pub struct QueryRequest {
    pub effective_connection_type: Option<String>,
    pub form_factor: Option<String>,
    pub metrics: Option<Vec<String>>,
    pub origin: Option<String>,
    pub url: Option<String>,
}
Expand description

Request payload sent by a physical web client. This request includes all necessary context to load a particular user experience record.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

effective_connection_type: Option<String>

The effective connection type is a query dimension that specifies the effective network class that the record’s data should belong to. This field uses the values [“offline”, “slow-2G”, “2G”, “3G”, “4G”] as specified in: https://wicg.github.io/netinfo/#effective-connection-types Note: If no effective connection type is specified, then a special record with aggregated data over all effective connection types will be returned.

form_factor: Option<String>

The form factor is a query dimension that specifies the device class that the record’s data should belong to. Note: If no form factor is specified, then a special record with aggregated data over all form factors will be returned.

metrics: Option<Vec<String>>

The metrics that should be included in the response. If none are specified then any metrics found will be returned. Allowed values: [“first_contentful_paint”, “first_input_delay”, “largest_contentful_paint”, “cumulative_layout_shift”]

origin: Option<String>

The url pattern “origin” refers to a url pattern that is the origin of a website. Examples: “https://example.com”, “https://cloud.google.com”

url: Option<String>

The url pattern “url” refers to a url pattern that is any arbitrary url. Examples: “https://example.com/”, “https://cloud.google.com/why-google-cloud/”

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.