#[non_exhaustive]pub enum IncludeInAvailability {
All,
Attending,
None,
}Expand description
Controls which events in a Calendar contribute to availability calculations (draft-ietf-jmap-calendars-33 §4).
The spec defines exactly three values with no extension mechanism; modelled
as a closed enum (no Other variant). Wire values are lowercase.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
All events in this calendar are considered for availability.
Attending
Only events where the user is a confirmed or tentative participant are considered.
None
No events in this calendar are used for availability (but may be included via another calendar).
Trait Implementations§
Source§impl Clone for IncludeInAvailability
impl Clone for IncludeInAvailability
Source§impl Debug for IncludeInAvailability
impl Debug for IncludeInAvailability
Source§impl<'de> Deserialize<'de> for IncludeInAvailability
impl<'de> Deserialize<'de> for IncludeInAvailability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IncludeInAvailability
Source§impl Hash for IncludeInAvailability
impl Hash for IncludeInAvailability
Source§impl PartialEq for IncludeInAvailability
impl PartialEq for IncludeInAvailability
Source§impl Serialize for IncludeInAvailability
impl Serialize for IncludeInAvailability
impl StructuralPartialEq for IncludeInAvailability
Auto Trait Implementations§
impl Freeze for IncludeInAvailability
impl RefUnwindSafe for IncludeInAvailability
impl Send for IncludeInAvailability
impl Sync for IncludeInAvailability
impl Unpin for IncludeInAvailability
impl UnsafeUnpin for IncludeInAvailability
impl UnwindSafe for IncludeInAvailability
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