Struct rusoto_s3::CORSRule [−][src]
Specifies a cross-origin access rule for an Amazon S3 bucket.
Fields
allowed_headers: Option<Vec<String>>
Headers that are specified in the Access-Control-Request-Headers
header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.
allowed_methods: Vec<String>
An HTTP method that you allow the origin to execute. Valid values are GET
, PUT
, HEAD
, POST
, and DELETE
.
allowed_origins: Vec<String>
One or more origins you want customers to be able to access the bucket from.
expose_headers: Option<Vec<String>>
One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest
object).
max_age_seconds: Option<i64>
The time in seconds that your browser is to cache the preflight response for the specified resource.
Trait Implementations
impl Clone for CORSRule
[src]
impl Debug for CORSRule
[src]
impl Default for CORSRule
[src]
impl PartialEq<CORSRule> for CORSRule
[src]
impl StructuralPartialEq for CORSRule
[src]
Auto Trait Implementations
impl RefUnwindSafe for CORSRule
impl Send for CORSRule
impl Sync for CORSRule
impl Unpin for CORSRule
impl UnwindSafe for CORSRule
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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>,