[−][src]Struct sundial::RRule
Methods
impl<'a> RRule<'a>
[src]
pub fn new<'b>() -> RRule<'b>
[src]
Generates a new empty RRule instance
Example:
use sundial::RRule; let rrule = RRule::new();
pub fn new_rrule<'b>(
tzid: String,
dtstart: String,
until: String,
frequency: String,
count: String,
interval: String,
wkst: String,
by_month: Vec<&'b str>,
by_hour: Vec<&'b str>,
by_minute: Vec<&'b str>,
by_second: Vec<&'b str>,
by_day: Vec<&'b str>,
by_month_day: Vec<&'b str>,
by_year_day: Vec<&'b str>
) -> RRule<'b>
[src]
tzid: String,
dtstart: String,
until: String,
frequency: String,
count: String,
interval: String,
wkst: String,
by_month: Vec<&'b str>,
by_hour: Vec<&'b str>,
by_minute: Vec<&'b str>,
by_second: Vec<&'b str>,
by_day: Vec<&'b str>,
by_month_day: Vec<&'b str>,
by_year_day: Vec<&'b str>
) -> RRule<'b>
pub fn get_all_iter_dates(
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<DateTime<Tz>>
[src]
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<DateTime<Tz>>
pub fn get_all_iter_dates_iso8601(
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<String>
[src]
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<String>
pub fn get_all_iter_dates_from_today_iso8601(
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<String>
[src]
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<String>
pub fn to_json(&self) -> String
[src]
pub fn to_json_pretty(&self) -> String
[src]
pub fn get_next_iter_dates(
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<DateTime<Tz>>
[src]
&self,
count_from_args: &str,
until_from_args: &str
) -> Vec<DateTime<Tz>>
Gets a list of next dates that are
pub fn get_next_date(&self, start_date: DateTime<Tz>) -> DateTime<Tz>
[src]
Trait Implementations
impl<'a> PartialEq<RRule<'a>> for RRule<'a>
[src]
impl<'a> Debug for RRule<'a>
[src]
impl<'a> Serialize for RRule<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for RRule<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,