pub struct WorkspaceRule {
pub name: String,
pub rule_type: RuleType,
pub enabled: bool,
}Expand description
A rule that applies to the workspace
Fields§
§name: StringName of the rule
rule_type: RuleTypeType of rule
enabled: boolWhether the rule is enabled
Trait Implementations§
Source§impl Clone for WorkspaceRule
impl Clone for WorkspaceRule
Source§fn clone(&self) -> WorkspaceRule
fn clone(&self) -> WorkspaceRule
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 WorkspaceRule
impl Debug for WorkspaceRule
Source§impl<'de> Deserialize<'de> for WorkspaceRule
impl<'de> Deserialize<'de> for WorkspaceRule
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 WorkspaceRule
impl RefUnwindSafe for WorkspaceRule
impl Send for WorkspaceRule
impl Sync for WorkspaceRule
impl Unpin for WorkspaceRule
impl UnwindSafe for WorkspaceRule
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