pub struct DirectivePolicy {
pub domains: Vec<String>,
pub mode: Mode,
}Expand description
A domain list paired with a merge mode.
Empty domains combined with Mode::Extend is a no-op. Empty domains
combined with Mode::Replace explicitly clears the accumulated list.
Fields§
§domains: Vec<String>§mode: ModeImplementations§
Trait Implementations§
Source§impl Clone for DirectivePolicy
impl Clone for DirectivePolicy
Source§fn clone(&self) -> DirectivePolicy
fn clone(&self) -> DirectivePolicy
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 DirectivePolicy
impl Debug for DirectivePolicy
Source§impl Default for DirectivePolicy
impl Default for DirectivePolicy
Source§fn default() -> DirectivePolicy
fn default() -> DirectivePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectivePolicywhere
DirectivePolicy: Default,
impl<'de> Deserialize<'de> for DirectivePolicywhere
DirectivePolicy: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DirectivePolicy
impl RefUnwindSafe for DirectivePolicy
impl Send for DirectivePolicy
impl Sync for DirectivePolicy
impl Unpin for DirectivePolicy
impl UnsafeUnpin for DirectivePolicy
impl UnwindSafe for DirectivePolicy
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