pub struct CalendarInfo {
pub identifier: String,
pub title: String,
pub source: Option<String>,
pub source_id: Option<String>,
pub calendar_type: CalendarType,
pub allows_modifications: bool,
pub is_immutable: bool,
pub is_subscribed: bool,
pub color: Option<(f64, f64, f64, f64)>,
pub allowed_entity_types: Vec<String>,
}Expand description
Represents a calendar (reminder list or event calendar).
Fields§
§identifier: StringUnique identifier
title: StringTitle of the calendar
source: Option<String>Source name (e.g., iCloud, Local)
source_id: Option<String>Source identifier
calendar_type: CalendarTypeCalendar type
allows_modifications: boolWhether items can be added/modified/deleted
is_immutable: boolWhether the calendar itself can be modified (renamed/deleted)
is_subscribed: boolWhether this is a URL-subscribed read-only calendar
color: Option<(f64, f64, f64, f64)>Calendar color as RGBA (0.0-1.0)
allowed_entity_types: Vec<String>Entity types this calendar supports (“event”, “reminder”)
Trait Implementations§
Source§impl Clone for CalendarInfo
impl Clone for CalendarInfo
Source§fn clone(&self) -> CalendarInfo
fn clone(&self) -> CalendarInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CalendarInfo
impl RefUnwindSafe for CalendarInfo
impl Send for CalendarInfo
impl Sync for CalendarInfo
impl Unpin for CalendarInfo
impl UnsafeUnpin for CalendarInfo
impl UnwindSafe for CalendarInfo
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