pub struct Vary(/* private fields */);Expand description
Configuration for the Vary header.
The joined value is computed once at construction; the set of names never changes after
crate::CorsBuilder::build.
Implementations§
Source§impl Vary
impl Vary
Sourcepub fn list<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
pub fn list<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
Sets the list of header names returned in Vary.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Vary
impl RefUnwindSafe for Vary
impl Send for Vary
impl Sync for Vary
impl Unpin for Vary
impl UnsafeUnpin for Vary
impl UnwindSafe for Vary
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