Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
983 stars 132 forks source link

method `doit` is private #456

Closed anil-e closed 8 months ago

anil-e commented 8 months ago

Hi,

First of all, thank you for making this comprehensive library available.

Unfortunately, I encountered a problem during my test of the Gmail import.

I am trying to use the messages_import function as described in the docs:

use gmail1::{ hyper, hyper_rustls, oauth2, Gmail};
use gmail1::{Error, Result as GResult}; 

... 

let mut hub = Gmail::new(...);
let result = hub.users().messages_import(req, "anil@termitel.de").doit().await;

Unfortunately, I encounter the error:

method `doit` is private

Is this a bug or am I using the function incorrectly?