#[non_exhaustive]pub struct CorsSettings {
pub allow_http_options: Option<BoolValue>,
/* private fields */
}Expand description
Allows customers to configure HTTP request paths that’ll allow HTTP
OPTIONS call to bypass authentication and authorization.
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.allow_http_options: Option<BoolValue>Configuration to allow HTTP OPTIONS calls to skip
authentication and authorization. If undefined, IAP will not apply any
special logic to OPTIONS requests.
Implementations§
Source§impl CorsSettings
impl CorsSettings
pub fn new() -> Self
Sourcepub fn set_allow_http_options<T>(self, v: T) -> Self
pub fn set_allow_http_options<T>(self, v: T) -> Self
Sets the value of allow_http_options.
Sourcepub fn set_or_clear_allow_http_options<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_allow_http_options<T>(self, v: Option<T>) -> Self
Sets or clears the value of allow_http_options.
Trait Implementations§
Source§impl Clone for CorsSettings
impl Clone for CorsSettings
Source§fn clone(&self) -> CorsSettings
fn clone(&self) -> CorsSettings
Returns a duplicate 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 CorsSettings
impl Debug for CorsSettings
Source§impl Default for CorsSettings
impl Default for CorsSettings
Source§fn default() -> CorsSettings
fn default() -> CorsSettings
Returns the “default value” for a type. Read more
Source§impl Message for CorsSettings
impl Message for CorsSettings
Source§impl PartialEq for CorsSettings
impl PartialEq for CorsSettings
impl StructuralPartialEq for CorsSettings
Auto Trait Implementations§
impl Freeze for CorsSettings
impl RefUnwindSafe for CorsSettings
impl Send for CorsSettings
impl Sync for CorsSettings
impl Unpin for CorsSettings
impl UnwindSafe for CorsSettings
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