pub struct AssignRule {
pub match_pattern: String,
pub match_type: MatchType,
pub groups: Vec<String>,
pub global: bool,
}Expand description
A rule that controls which groups a newly created workspace is added to.
Fields§
§match_pattern: StringPattern to match against the workspace name.
match_type: MatchTypeHow to interpret match_pattern. Default: "exact".
groups: Vec<String>Groups to add the workspace to. If non-empty, replaces the default “add to active group” behaviour.
global: boolWhether to mark the workspace as global.
Trait Implementations§
Source§impl Clone for AssignRule
impl Clone for AssignRule
Source§fn clone(&self) -> AssignRule
fn clone(&self) -> AssignRule
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 AssignRule
impl Debug for AssignRule
Source§impl<'de> Deserialize<'de> for AssignRule
impl<'de> Deserialize<'de> for AssignRule
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 AssignRule
impl PartialEq for AssignRule
Source§impl Serialize for AssignRule
impl Serialize for AssignRule
impl Eq for AssignRule
impl StructuralPartialEq for AssignRule
Auto Trait Implementations§
impl Freeze for AssignRule
impl RefUnwindSafe for AssignRule
impl Send for AssignRule
impl Sync for AssignRule
impl Unpin for AssignRule
impl UnsafeUnpin for AssignRule
impl UnwindSafe for AssignRule
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.