google_drive/
about.rs

1use crate::Client;
2use crate::ClientResult;
3
4pub struct About {
5    pub client: Client,
6}
7
8impl About {
9    #[doc(hidden)]
10    pub fn new(client: Client) -> Self {
11        About { client }
12    }
13
14    /**
15     * This function performs a `GET` to the `/about` endpoint.
16     *
17     * Gets information about the user, the user's Drive, and system capabilities.
18     */
19    pub async fn get(&self) -> ClientResult<crate::Response<crate::types::About>> {
20        let url = self.client.url("/about", None);
21        self.client
22            .get(
23                &url,
24                crate::Message {
25                    body: None,
26                    content_type: None,
27                },
28            )
29            .await
30    }
31}