pub struct CalendarClient { /* private fields */ }Implementations§
Source§impl CalendarClient
impl CalendarClient
pub fn new(config: &Config) -> Self
pub async fn list_calendars(&self) -> CalendarResult<CalendarList>
pub async fn list_events( &self, calendar_id: &str, max_results: Option<u32>, time_min: Option<DateTime<Utc>>, time_max: Option<DateTime<Utc>>, ) -> CalendarResult<Vec<CalendarEvent>>
pub async fn create_event( &self, calendar_id: &str, event: CalendarEvent, ) -> CalendarResult<CalendarEvent>
pub async fn get_event( &self, calendar_id: &str, event_id: &str, ) -> CalendarResult<CalendarEvent>
Trait Implementations§
Source§impl Clone for CalendarClient
impl Clone for CalendarClient
Source§fn clone(&self) -> CalendarClient
fn clone(&self) -> CalendarClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CalendarClient
impl !UnwindSafe for CalendarClient
impl Freeze for CalendarClient
impl Send for CalendarClient
impl Sync for CalendarClient
impl Unpin for CalendarClient
impl UnsafeUnpin for CalendarClient
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