google-calendar 0.10.0

A fully generated & opinionated API client for the Google Calendar API.
Documentation
use crate::Client;
use crate::ClientResult;

pub struct Colors {
    pub client: Client,
}

impl Colors {
    #[doc(hidden)]
    pub fn new(client: Client) -> Self {
        Colors { client }
    }

    /**
     * This function performs a `GET` to the `/colors` endpoint.
     *
     * Returns the color definitions for calendars and events.
     */
    pub async fn get(&self) -> ClientResult<crate::Response<crate::types::Colors>> {
        let url = self.client.url("/colors", None);
        self.client
            .get(
                &url,
                crate::Message {
                    body: None,
                    content_type: None,
                },
            )
            .await
    }
}