pub struct CorsRuleConfig {
pub id: Option<String>,
pub allowed_origins: Vec<String>,
pub allowed_methods: Vec<String>,
pub allowed_headers: Vec<String>,
pub expose_headers: Vec<String>,
pub max_age_seconds: Option<i32>,
}Expand description
CORS rule configuration stored on a bucket.
This is the raw configuration value, not the evaluated CORS rule used at
request time (see cors.rs for the runtime representation).
Fields§
§id: Option<String>Optional identifier for the rule.
allowed_origins: Vec<String>Origins that are allowed to make cross-domain requests.
allowed_methods: Vec<String>HTTP methods that the origin is allowed to execute.
allowed_headers: Vec<String>Headers that are allowed in a pre-flight OPTIONS request.
expose_headers: Vec<String>Headers in the response that customers are able to access.
max_age_seconds: Option<i32>Time in seconds that the browser should cache the preflight response.
Trait Implementations§
Source§impl Clone for CorsRuleConfig
impl Clone for CorsRuleConfig
Source§fn clone(&self) -> CorsRuleConfig
fn clone(&self) -> CorsRuleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CorsRuleConfig
impl Debug for CorsRuleConfig
Source§impl<'de> Deserialize<'de> for CorsRuleConfig
impl<'de> Deserialize<'de> for CorsRuleConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CorsRuleConfig
impl RefUnwindSafe for CorsRuleConfig
impl Send for CorsRuleConfig
impl Sync for CorsRuleConfig
impl Unpin for CorsRuleConfig
impl UnsafeUnpin for CorsRuleConfig
impl UnwindSafe for CorsRuleConfig
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