pub enum IcalRecurRuleProblem {
PartFreq {
part: IcalRecurPart,
freq: IcalRecurFreq,
},
OrdinalFreq {
freq: IcalRecurFreq,
},
OrdinalWithWeekNo,
SetPosAlone,
UntilWithCount,
SkipWithoutScale,
}Expand description
One way a rule breaks RFC 5545 3.3.10.
Variants§
PartFreq
A BY part the rule’s frequency forbids.
Fields
§
part: IcalRecurPartThe part that may not appear.
§
freq: IcalRecurFreqThe frequency that forbids it.
OrdinalFreq
A BYDAY ordinal (2MO, -1SU) outside MONTHLY and YEARLY.
Fields
§
freq: IcalRecurFreqThe frequency that forbids it.
OrdinalWithWeekNo
A BYDAY ordinal at YEARLY beside a BYWEEKNO, where it would mean
two contradictory things at once.
SetPosAlone
BYSETPOS with no other BY part to pick positions out of.
UntilWithCount
UNTIL and COUNT together, which bound the rule twice.
SkipWithoutScale
SKIP with no RSCALE, which RFC 7529 4 requires beside it.
Trait Implementations§
Source§impl Clone for IcalRecurRuleProblem
impl Clone for IcalRecurRuleProblem
Source§fn clone(&self) -> IcalRecurRuleProblem
fn clone(&self) -> IcalRecurRuleProblem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IcalRecurRuleProblem
Source§impl Debug for IcalRecurRuleProblem
impl Debug for IcalRecurRuleProblem
Source§impl Display for IcalRecurRuleProblem
impl Display for IcalRecurRuleProblem
impl Eq for IcalRecurRuleProblem
Source§impl Error for IcalRecurRuleProblem
impl Error for IcalRecurRuleProblem
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for IcalRecurRuleProblem
impl PartialEq for IcalRecurRuleProblem
impl StructuralPartialEq for IcalRecurRuleProblem
Auto Trait Implementations§
impl Freeze for IcalRecurRuleProblem
impl RefUnwindSafe for IcalRecurRuleProblem
impl Send for IcalRecurRuleProblem
impl Sync for IcalRecurRuleProblem
impl Unpin for IcalRecurRuleProblem
impl UnsafeUnpin for IcalRecurRuleProblem
impl UnwindSafe for IcalRecurRuleProblem
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