pub struct CalendarEvent { /* private fields */ }Implementations§
Source§impl CalendarEvent
impl CalendarEvent
pub fn create( calendar: &Calendar, event: Event, ) -> Result<Self, CalendarEventError>
pub fn load(path: impl Into<PathBuf>) -> Result<Self, CalendarEventError>
pub fn update(&mut self, event: Event) -> Result<(), CalendarEventError>
pub fn delete(self) -> Result<(), CalendarEventError>
pub fn event(&self) -> &Event
pub fn path(&self) -> &Path
pub fn filename(&self) -> Option<&str>
pub fn modified_at(&self) -> Option<DateTime<Utc>>
pub fn update_attendee_status( &mut self, email: &str, status: ParticipationStatus, ) -> Result<(), CalendarEventError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CalendarEvent
impl RefUnwindSafe for CalendarEvent
impl Send for CalendarEvent
impl Sync for CalendarEvent
impl Unpin for CalendarEvent
impl UnsafeUnpin for CalendarEvent
impl UnwindSafe for CalendarEvent
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