pub struct FilterConfig {
pub agents: Option<Vec<ItemName>>,
pub skills: Option<Vec<ItemName>>,
pub exclude: Option<Vec<ItemName>>,
pub rename: Option<RenameMap>,
pub only_skills: bool,
pub only_agents: bool,
}Expand description
Shared include/exclude/rename filter configuration for a source.
Fields§
§agents: Option<Vec<ItemName>>§skills: Option<Vec<ItemName>>§exclude: Option<Vec<ItemName>>§rename: Option<RenameMap>§only_skills: bool§only_agents: boolImplementations§
Source§impl FilterConfig
impl FilterConfig
Sourcepub fn to_mode(&self) -> FilterMode
pub fn to_mode(&self) -> FilterMode
Convert to the resolved FilterMode enum.
Sourcepub fn has_any_filter(&self) -> bool
pub fn has_any_filter(&self) -> bool
Returns true if any filter field is set (not default).
Trait Implementations§
Source§impl Clone for FilterConfig
impl Clone for FilterConfig
Source§fn clone(&self) -> FilterConfig
fn clone(&self) -> FilterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FilterConfig
impl Debug for FilterConfig
Source§impl Default for FilterConfig
impl Default for FilterConfig
Source§fn default() -> FilterConfig
fn default() -> FilterConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilterConfig
impl<'de> Deserialize<'de> for FilterConfig
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
Source§impl PartialEq for FilterConfig
impl PartialEq for FilterConfig
Source§fn eq(&self, other: &FilterConfig) -> bool
fn eq(&self, other: &FilterConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FilterConfig
impl Serialize for FilterConfig
impl StructuralPartialEq for FilterConfig
Auto Trait Implementations§
impl Freeze for FilterConfig
impl RefUnwindSafe for FilterConfig
impl Send for FilterConfig
impl Sync for FilterConfig
impl Unpin for FilterConfig
impl UnsafeUnpin for FilterConfig
impl UnwindSafe for FilterConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more