#[non_exhaustive]pub struct RequestDirectives {
pub max_age: Option<u32>,
pub max_stale: Option<Option<u32>>,
pub min_fresh: Option<u32>,
pub no_cache: bool,
pub no_store: bool,
pub no_transform: bool,
pub only_if_cached: bool,
pub stale_if_error: Option<u32>,
pub duplicates: bool,
pub invalid_values: bool,
pub unknown: u16,
}Expand description
The request directives (RFC 9111 section 5.2.1).
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.max_age: Option<u32>max-age.
max_stale: Option<Option<u32>>max-stale: Some(None) without a value (any staleness).
min_fresh: Option<u32>min-fresh.
no_cache: boolno-cache.
no_store: boolno-store.
no_transform: boolno-transform.
only_if_cached: boolonly-if-cached.
stale_if_error: Option<u32>stale-if-error (RFC 5861).
duplicates: boolA known directive appeared more than once.
invalid_values: boolA known directive had an argument that does not fit its grammar.
unknown: u16The number of extension directives (saturating).
Trait Implementations§
Source§impl Clone for RequestDirectives
impl Clone for RequestDirectives
impl Copy for RequestDirectives
Source§impl Debug for RequestDirectives
impl Debug for RequestDirectives
Source§impl Default for RequestDirectives
impl Default for RequestDirectives
impl Eq for RequestDirectives
Source§impl Hash for RequestDirectives
impl Hash for RequestDirectives
Source§impl PartialEq for RequestDirectives
impl PartialEq for RequestDirectives
impl StructuralPartialEq for RequestDirectives
Auto Trait Implementations§
impl Freeze for RequestDirectives
impl RefUnwindSafe for RequestDirectives
impl Send for RequestDirectives
impl Sync for RequestDirectives
impl Unpin for RequestDirectives
impl UnsafeUnpin for RequestDirectives
impl UnwindSafe for RequestDirectives
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