#[non_exhaustive]pub enum NotificationType {
Created,
Updated,
Destroyed,
Other(String),
}Expand description
Type of change recorded by a CalendarEventNotification
(draft-ietf-jmap-calendars-33 §7).
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.
Created
A calendar event was created.
Updated
A calendar event was updated.
Destroyed
A calendar event was destroyed.
Other(String)
Any notification type string not recognised by this implementation.
Implementations§
Trait Implementations§
Source§impl Clone for NotificationType
impl Clone for NotificationType
Source§impl Debug for NotificationType
impl Debug for NotificationType
Source§impl<'de> Deserialize<'de> for NotificationType
impl<'de> Deserialize<'de> for NotificationType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NotificationType
impl Display for NotificationType
impl Eq for NotificationType
Source§impl From<&str> for NotificationType
impl From<&str> for NotificationType
Source§impl From<String> for NotificationType
impl From<String> for NotificationType
Source§impl Hash for NotificationType
impl Hash for NotificationType
Source§impl PartialEq for NotificationType
impl PartialEq for NotificationType
Source§impl Serialize for NotificationType
impl Serialize for NotificationType
impl StructuralPartialEq for NotificationType
Auto Trait Implementations§
impl Freeze for NotificationType
impl RefUnwindSafe for NotificationType
impl Send for NotificationType
impl Sync for NotificationType
impl Unpin for NotificationType
impl UnsafeUnpin for NotificationType
impl UnwindSafe for NotificationType
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