pub enum Source {
SameOrigin,
Src,
None,
UnsafeInline,
Data,
Mediastream,
Https,
Blob,
Filesystem,
StrictDynamic,
UnsafeEval,
Wildcard,
}
Expand description
Define source value
Variants§
SameOrigin
Set source 'self'
Src
Set source 'src'
None
Set source 'none'
UnsafeInline
Set source 'unsafe-inline'
Data
Set source data:
Mediastream
Set source mediastream:
Https
Set source https:
Blob
Set source blob:
Filesystem
Set source filesystem:
StrictDynamic
Set source 'strict-dynamic'
UnsafeEval
Set source 'unsafe-eval'
Wildcard
Set source *
Trait Implementations§
impl Copy for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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