pub async fn update_group_settings(&self, settings: &GroupSettings) -> Result<(), APIError> {
        // Build the request.
        let request = self.request(GROUPS_SETTINGS_ENDPOINT, Method::PUT, &settings.email, settings, Some(&[("alt", "json")]));

        let resp = self.client.execute(request).await.unwrap();
        match resp.status() {
            StatusCode::OK => (),
            s => {
                return Err(APIError {
                    status_code: s,
                    body: resp.text().await.unwrap(),
                });
            }
        };

        Ok(())
    }
/// Update a Google group's settings.
Update a Google group's settings.
Update a Google group ' s settings .
pub async fn update_group_settings(&self, settings: &GroupSettings) -> Result<(), APIError> {
        // Build the request.
        let request = self.request(GROUPS_SETTINGS_ENDPOINT, Method::PUT, &settings.email, settings, Some(&[("alt", "json")]));
        let resp = self.client.execute(request).await.unwrap();
        match resp.status() {
            StatusCode::OK => (),
            s => {
                return Err(APIError {
                    status_code: s,
                    body: resp.text().await.unwrap(),
                });
            }
        };
        Ok(())
    }
pub async fn update_group_settings ( & self , settings : & GroupSettings ) -> Result < ( ) , APIError > { // Build the request. let request = self . request ( GROUPS_SETTINGS_ENDPOINT , Method :: PUT , & settings . email , settings , Some ( & [ ( " " , " " ) ] ) ) ; let resp = self . client . execute ( request ) . await . unwrap ( ) ; match resp . status ( ) { StatusCode :: OK => ( ) , s => { return Err ( APIError { status_code : s , body : resp . text ( ) . await . unwrap ( ) , } ) ; } } ; Ok ( ( ) ) }
Update a Google group's settings.
Update a Google group ' s settings .
&self
settings
&GroupSettings
&self
settings
&GroupSettings