Struct headers_ext::AccessControlMaxAge[][src]

pub struct AccessControlMaxAge(_);

Access-Control-Max-Age header, part of CORS

The Access-Control-Max-Age header indicates how long the results of a preflight request can be cached in a preflight result cache.

ABNF

Access-Control-Max-Age = \"Access-Control-Max-Age\" \":\" delta-seconds

Example values

  • 531

Examples

use std::time::Duration;
use headers::AccessControlMaxAge;

let max_age = AccessControlMaxAge::from(Duration::from_secs(531));

Trait Implementations

impl Clone for AccessControlMaxAge
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AccessControlMaxAge
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AccessControlMaxAge
[src]

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

This method tests for !=.

impl Eq for AccessControlMaxAge
[src]

impl PartialOrd for AccessControlMaxAge
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for AccessControlMaxAge
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for AccessControlMaxAge
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl From<Duration> for AccessControlMaxAge
[src]

Performs the conversion.

impl From<AccessControlMaxAge> for Duration
[src]

Performs the conversion.

Auto Trait Implementations