[−][src]Struct rusoto_cloudfront::CachedMethods
A complex type that controls whether CloudFront caches the response to requests using the specified HTTP methods. There are two choices:
-
CloudFront caches responses to
GET
andHEAD
requests. -
CloudFront caches responses to
GET
,HEAD
, andOPTIONS
requests.
If you pick the second choice for your Amazon S3 Origin, you may need to forward Access-Control-Request-Method, Access-Control-Request-Headers, and Origin headers for the responses to be cached correctly.
Fields
items: Vec<String>
A complex type that contains the HTTP methods that you want CloudFront to cache responses to.
quantity: i64
The number of HTTP methods for which you want CloudFront to cache responses. Valid values are 2
(for caching responses to GET
and HEAD
requests) and 3
(for caching responses to GET
, HEAD
, and OPTIONS
requests).
Trait Implementations
impl Clone for CachedMethods
[src]
pub fn clone(&self) -> CachedMethods
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CachedMethods
[src]
impl Default for CachedMethods
[src]
pub fn default() -> CachedMethods
[src]
impl PartialEq<CachedMethods> for CachedMethods
[src]
pub fn eq(&self, other: &CachedMethods) -> bool
[src]
pub fn ne(&self, other: &CachedMethods) -> bool
[src]
impl StructuralPartialEq for CachedMethods
[src]
Auto Trait Implementations
impl RefUnwindSafe for CachedMethods
[src]
impl Send for CachedMethods
[src]
impl Sync for CachedMethods
[src]
impl Unpin for CachedMethods
[src]
impl UnwindSafe for CachedMethods
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,