Struct headers::AccessControlMaxAge
source · pub struct AccessControlMaxAge(/* private fields */);
Expand description
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§
source§impl Clone for AccessControlMaxAge
impl Clone for AccessControlMaxAge
source§fn clone(&self) -> AccessControlMaxAge
fn clone(&self) -> AccessControlMaxAge
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 AccessControlMaxAge
impl Debug for AccessControlMaxAge
source§impl From<AccessControlMaxAge> for Duration
impl From<AccessControlMaxAge> for Duration
source§fn from(acma: AccessControlMaxAge) -> Duration
fn from(acma: AccessControlMaxAge) -> Duration
Converts to this type from the input type.
source§impl From<Duration> for AccessControlMaxAge
impl From<Duration> for AccessControlMaxAge
source§fn from(dur: Duration) -> AccessControlMaxAge
fn from(dur: Duration) -> AccessControlMaxAge
Converts to this type from the input type.
source§impl Hash for AccessControlMaxAge
impl Hash for AccessControlMaxAge
source§impl Header for AccessControlMaxAge
impl Header for AccessControlMaxAge
source§impl Ord for AccessControlMaxAge
impl Ord for AccessControlMaxAge
source§fn cmp(&self, other: &AccessControlMaxAge) -> Ordering
fn cmp(&self, other: &AccessControlMaxAge) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AccessControlMaxAge
impl PartialEq for AccessControlMaxAge
source§impl PartialOrd for AccessControlMaxAge
impl PartialOrd for AccessControlMaxAge
impl Eq for AccessControlMaxAge
impl StructuralPartialEq for AccessControlMaxAge
Auto Trait Implementations§
impl Freeze for AccessControlMaxAge
impl RefUnwindSafe for AccessControlMaxAge
impl Send for AccessControlMaxAge
impl Sync for AccessControlMaxAge
impl Unpin for AccessControlMaxAge
impl UnwindSafe for AccessControlMaxAge
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)