[][src]Struct firefly_iii::models::recurrence_repetition::RecurrenceRepetition

pub struct RecurrenceRepetition {
    pub id: Option<i32>,
    pub created_at: Option<String>,
    pub updated_at: Option<String>,
    pub _type: Type,
    pub moment: String,
    pub skip: Option<i32>,
    pub weekend: Option<i32>,
    pub description: Option<String>,
    pub occurrences: Option<Vec<String>>,
}

Fields

id: Option<i32>created_at: Option<String>updated_at: Option<String>_type: Type

The type of the repetition. ndom means: the n-th weekday of the month, where you can also specify which day of the week.

moment: String

Information that defined the type of repetition. - For 'daily', this is empty. - For 'weekly', it is day of the week between 1 and 7 (Monday - Sunday). - For 'ndom', it is '1,2' or '4,5' or something else, where the first number is the week in the month, and the second number is the day in the week (between 1 and 7). '2,3' means: the 2nd Wednesday of the month - For 'monthly' it is the day of the month (1 - 31) - For yearly, it is a full date, ie '2018-09-17'. The year you use does not matter.

skip: Option<i32>

How many occurrences to skip. 0 means skip nothing. 1 means every other.

weekend: Option<i32>

How to respond when the recurring transaction falls in the weekend. Possible values: 1. Do nothing, just create it 2. Create no transaction. 3. Skip to the previous Friday. 4. Skip to the next Monday.

description: Option<String>

Auto-generated repetition description.

occurrences: Option<Vec<String>>

Array of future dates when the repetition will apply to. Auto generated.

Methods

impl RecurrenceRepetition[src]

pub fn new(_type: Type, moment: String) -> RecurrenceRepetition[src]

Trait Implementations

impl Debug for RecurrenceRepetition[src]

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

impl PartialEq<RecurrenceRepetition> for RecurrenceRepetition[src]

impl Serialize for RecurrenceRepetition[src]

impl StructuralPartialEq for RecurrenceRepetition[src]

Auto Trait Implementations

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.