pub struct Rule {
pub name: String,
pub span: Option<Span>,
pub name_span: Option<Span>,
pub disabled: bool,
pub delimiter: bool,
pub new_page: Option<String>,
pub annotations: Vec<Annotation>,
pub event: Event,
pub conditions: Vec<Expr>,
pub actions: Vec<Stmt>,
}Expand description
A rule with its event, conditions, and actions.
Fields§
§name: String§span: Option<Span>§name_span: Option<Span>The exact span of the rule name inside its string literal.
disabled: bool§delimiter: bool§new_page: Option<String>§annotations: Vec<Annotation>§event: Event§conditions: Vec<Expr>§actions: Vec<Stmt>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rule
impl<'de> Deserialize<'de> for Rule
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
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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