pub enum CrossOriginSetting {
None,
Anonymous,
UseCredentials,
}
Expand description
Represents CORS (Cross Origin Resource Sharing) setting for an HTML element.
Variants§
None
CORS is not used for this element.
Anonymous
CORS requests for this element will not have the credentials flag set.
UseCredentials
CORS requests for this element will have the credentials flag set; this means the request will provide credentials.
Trait Implementations§
Source§impl Clone for CrossOriginSetting
impl Clone for CrossOriginSetting
Source§fn clone(&self) -> CrossOriginSetting
fn clone(&self) -> CrossOriginSetting
Returns a copy 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 CrossOriginSetting
impl Debug for CrossOriginSetting
Source§impl PartialEq for CrossOriginSetting
impl PartialEq for CrossOriginSetting
impl Copy for CrossOriginSetting
impl Eq for CrossOriginSetting
impl StructuralPartialEq for CrossOriginSetting
Auto Trait Implementations§
impl Freeze for CrossOriginSetting
impl RefUnwindSafe for CrossOriginSetting
impl Send for CrossOriginSetting
impl Sync for CrossOriginSetting
impl Unpin for CrossOriginSetting
impl UnwindSafe for CrossOriginSetting
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