#[non_exhaustive]
pub struct SampledHttpRequest { pub request: Option<HttpRequest>, pub weight: i64, pub timestamp: Option<DateTime>, pub action: Option<String>, pub rule_name_within_rule_group: Option<String>, pub request_headers_inserted: Option<Vec<HttpHeader>>, pub response_code_sent: Option<i32>, pub labels: Option<Vec<Label>>, pub captcha_response: Option<CaptchaResponse>, }
Expand description

Represents a single sampled web request. The response from GetSampledRequests includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests contains an array of SampledHTTPRequest objects.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
request: Option<HttpRequest>

A complex type that contains detailed information about the request.

weight: i64

A value that indicates how one result in the response relates proportionally to other results in the response. For example, a result that has a weight of 2 represents roughly twice as many web requests as a result that has a weight of 1.

timestamp: Option<DateTime>

The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).

action: Option<String>

The action for the Rule that the request matched: Allow, Block, or Count.

rule_name_within_rule_group: Option<String>

The name of the Rule that the request matched. For managed rule groups, the format for this name is # # . For your own rule groups, the format for this name is # . If the rule is not in a rule group, this field is absent.

request_headers_inserted: Option<Vec<HttpHeader>>

Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.

response_code_sent: Option<i32>

The response code that was sent for the request.

labels: Option<Vec<Label>>

Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.

For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or awswaf:managed:aws:managed-rule-set:header:encoding:utf8.

captcha_response: Option<CaptchaResponse>

The CAPTCHA response for the request.

Implementations

A complex type that contains detailed information about the request.

A value that indicates how one result in the response relates proportionally to other results in the response. For example, a result that has a weight of 2 represents roughly twice as many web requests as a result that has a weight of 1.

The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).

The action for the Rule that the request matched: Allow, Block, or Count.

The name of the Rule that the request matched. For managed rule groups, the format for this name is # # . For your own rule groups, the format for this name is # . If the rule is not in a rule group, this field is absent.

Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.

The response code that was sent for the request.

Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.

For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or awswaf:managed:aws:managed-rule-set:header:encoding:utf8.

The CAPTCHA response for the request.

Creates a new builder-style object to manufacture SampledHttpRequest

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more