pub struct TargetFilter(/* private fields */);Expand description
The entries in TargetFilter are matched sequentially against targets and
the first entry that matches determines if the target is included or not,
depending on the value of exclude field in the entry.
If filter is not specified, the one assumed is
[{type: “browser”, exclude: true}, {type: “tab”, exclude: true}, {}]
(i.e. include everything but browser and tab).
TargetFilter
Implementations§
Source§impl TargetFilter
impl TargetFilter
pub fn new(val: impl Into<Vec<FilterEntry>>) -> TargetFilter
pub fn inner(&self) -> &Vec<FilterEntry>
Source§impl TargetFilter
impl TargetFilter
pub const IDENTIFIER: &'static str = "Target.TargetFilter"
Trait Implementations§
Source§impl Clone for TargetFilter
impl Clone for TargetFilter
Source§fn clone(&self) -> TargetFilter
fn clone(&self) -> TargetFilter
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 TargetFilter
impl Debug for TargetFilter
Source§impl Default for TargetFilter
impl Default for TargetFilter
Source§fn default() -> TargetFilter
fn default() -> TargetFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetFilter
impl<'de> Deserialize<'de> for TargetFilter
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TargetFilter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TargetFilter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TargetFilter
impl PartialEq for TargetFilter
Source§impl Serialize for TargetFilter
impl Serialize for TargetFilter
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TargetFilter
Auto Trait Implementations§
impl Freeze for TargetFilter
impl RefUnwindSafe for TargetFilter
impl Send for TargetFilter
impl Sync for TargetFilter
impl Unpin for TargetFilter
impl UnwindSafe for TargetFilter
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