[][src]Struct firefly_iii::models::rule::Rule

pub struct Rule {
    pub created_at: Option<String>,
    pub updated_at: Option<String>,
    pub title: String,
    pub description: Option<String>,
    pub rule_group_id: i32,
    pub rule_group_title: Option<String>,
    pub order: Option<i32>,
    pub trigger: Trigger,
    pub active: Option<bool>,
    pub strict: Option<bool>,
    pub stop_processing: Option<bool>,
    pub triggers: Vec<RuleTrigger>,
    pub actions: Vec<RuleAction>,
}

Fields

created_at: Option<String>updated_at: Option<String>title: Stringdescription: Option<String>rule_group_id: i32

ID of the rule group under which the rule must be stored. Either this field or rule_group_title is mandatory.

rule_group_title: Option<String>

Title of the rule group under which the rule must be stored. Either this field or rule_group_id is mandatory.

order: Option<i32>trigger: Trigger

Which action is necessary for the rule to fire? Use either store-journal or update-journal.

active: Option<bool>

Whether or not the rule is even active. Default is true.

strict: Option<bool>

If the rule is set to be strict, ALL triggers must hit in order for the rule to fire. Otherwise, just one is enough. Default value is true.

stop_processing: Option<bool>

If this value is true and the rule is triggered, other rules after this one in the group will be skipped. Default value is false.

triggers: Vec<RuleTrigger>actions: Vec<RuleAction>

Methods

impl Rule[src]

pub fn new(
    title: String,
    rule_group_id: i32,
    trigger: Trigger,
    triggers: Vec<RuleTrigger>,
    actions: Vec<RuleAction>
) -> Rule
[src]

Trait Implementations

impl Debug for Rule[src]

impl<'de> Deserialize<'de> for Rule[src]

impl PartialEq<Rule> for Rule[src]

impl Serialize for Rule[src]

impl StructuralPartialEq for Rule[src]

Auto Trait Implementations

impl RefUnwindSafe for Rule

impl Send for Rule

impl Sync for Rule

impl Unpin for Rule

impl UnwindSafe for Rule

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.