pub struct AccessControlMaxAge(pub u32);
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 hyper::header::{Headers, AccessControlMaxAge};
let mut headers = Headers::new();
headers.set(AccessControlMaxAge(1728000u32));
Tuple Fields§
§0: u32
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 Deref for AccessControlMaxAge
impl Deref for AccessControlMaxAge
Source§impl DerefMut for AccessControlMaxAge
impl DerefMut for AccessControlMaxAge
Source§impl Display for AccessControlMaxAge
impl Display for AccessControlMaxAge
Source§impl Header for AccessControlMaxAge
impl Header for AccessControlMaxAge
Source§impl PartialEq for AccessControlMaxAge
impl PartialEq 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)