pub struct ImmutableRule {
pub id: Option<i32>,
pub priority: Option<i32>,
pub disabled: Option<bool>,
pub action: Option<String>,
pub template: Option<String>,
pub params: Option<HashMap<String, Value>>,
pub tag_selectors: Option<Vec<ImmutableSelector>>,
pub scope_selectors: Option<HashMap<String, Vec<ImmutableSelector>>>,
}Fields§
§id: Option<i32>§priority: Option<i32>§disabled: Option<bool>§action: Option<String>§template: Option<String>§params: Option<HashMap<String, Value>>§tag_selectors: Option<Vec<ImmutableSelector>>§scope_selectors: Option<HashMap<String, Vec<ImmutableSelector>>>Implementations§
Source§impl ImmutableRule
impl ImmutableRule
pub fn new() -> ImmutableRule
Trait Implementations§
Source§impl Clone for ImmutableRule
impl Clone for ImmutableRule
Source§fn clone(&self) -> ImmutableRule
fn clone(&self) -> ImmutableRule
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 ImmutableRule
impl Debug for ImmutableRule
Source§impl Default for ImmutableRule
impl Default for ImmutableRule
Source§fn default() -> ImmutableRule
fn default() -> ImmutableRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImmutableRule
impl<'de> Deserialize<'de> for ImmutableRule
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 ImmutableRule
impl PartialEq for ImmutableRule
Source§impl Serialize for ImmutableRule
impl Serialize for ImmutableRule
impl StructuralPartialEq for ImmutableRule
Auto Trait Implementations§
impl Freeze for ImmutableRule
impl RefUnwindSafe for ImmutableRule
impl Send for ImmutableRule
impl Sync for ImmutableRule
impl Unpin for ImmutableRule
impl UnwindSafe for ImmutableRule
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