pub struct CorsConfigurationBuilder { /* private fields */ }Implementations§
Source§impl CorsConfigurationBuilder
impl CorsConfigurationBuilder
pub fn new() -> Self
pub fn allow_credentials(self, allow: bool) -> Self
pub fn allow_headers(self, headers: Vec<String>) -> Self
pub fn allow_methods(self, methods: Vec<HttpMethod>) -> Self
pub fn allow_origins(self, origins: Vec<String>) -> Self
pub fn expose_headers(self, headers: Vec<String>) -> Self
pub fn max_age(self, age: Duration) -> Self
pub fn build(self) -> CorsConfiguration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CorsConfigurationBuilder
impl RefUnwindSafe for CorsConfigurationBuilder
impl Send for CorsConfigurationBuilder
impl Sync for CorsConfigurationBuilder
impl Unpin for CorsConfigurationBuilder
impl UnwindSafe for CorsConfigurationBuilder
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