pub struct CalendarsApi { /* private fields */ }Implementations§
Source§impl CalendarsApi
impl CalendarsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn list(&self, location_id: &str) -> Result<GetCalendarsResponse>
pub async fn get(&self, calendar_id: &str) -> Result<GetCalendarResponse>
pub async fn create( &self, params: &CreateCalendarParams, ) -> Result<GetCalendarResponse>
pub async fn update( &self, calendar_id: &str, params: &UpdateCalendarParams, ) -> Result<GetCalendarResponse>
pub async fn delete(&self, calendar_id: &str) -> Result<DeleteCalendarResponse>
pub async fn get_free_slots( &self, calendar_id: &str, params: &GetFreeSlotsParams, ) -> Result<FreeSlotsResponse>
pub async fn get_events( &self, params: &GetEventsParams, ) -> Result<GetEventsResponse>
pub async fn get_event(&self, event_id: &str) -> Result<GetEventResponse>
pub async fn create_event( &self, params: &CreateEventParams, ) -> Result<GetEventResponse>
pub async fn update_event( &self, event_id: &str, params: &UpdateEventParams, ) -> Result<GetEventResponse>
pub async fn delete_event(&self, event_id: &str) -> Result<DeleteEventResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for CalendarsApi
impl !UnwindSafe for CalendarsApi
impl Freeze for CalendarsApi
impl Send for CalendarsApi
impl Sync for CalendarsApi
impl Unpin for CalendarsApi
impl UnsafeUnpin for CalendarsApi
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