[−][src]Struct firefly_iii::models::rule::Rule
Fields
created_at: Option<String>
updated_at: Option<String>
title: String
description: 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]
title: String,
rule_group_id: i32,
trigger: Trigger,
triggers: Vec<RuleTrigger>,
actions: Vec<RuleAction>
) -> Rule
Trait Implementations
impl Debug for Rule
[src]
impl<'de> Deserialize<'de> for Rule
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Rule> for Rule
[src]
impl Serialize for Rule
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,