pub struct Rule {
pub name: String,
pub span: Span,
pub name_span: Span,
pub disabled: bool,
pub delimiter: bool,
pub new_page: Option<String>,
pub annotations: Vec<Annotation>,
pub rule_prefix: Option<String>,
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: Span§name_span: SpanThe exact span of the rule name inside its string literal.
disabled: bool§delimiter: bool§new_page: Option<String>§annotations: Vec<Annotation>§rule_prefix: Option<String>§event: Event§conditions: Vec<Expr>§actions: Vec<Stmt>Trait Implementations§
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