Struct gsuite_api::Client [−][src]
pub struct Client { /* fields omitted */ }
Expand description
Entrypoint for interacting with the API client.
Implementations
Create a new Client struct. It takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key your requests will work.
pub async fn new_from_env<T, R>(token: T, refresh_token: R) -> Self where
T: ToString,
R: ToString,
pub async fn new_from_env<T, R>(token: T, refresh_token: R) -> Self where
T: ToString,
R: ToString,
Create a new Client struct from environment variables. It
takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key and your requests will work.
We pass in the token and refresh token to the client so if you are storing
it in a database, you can get it first.
Return a user consent url with an optional set of scopes. If no scopes are provided, they will not be passed in the url.
Refresh an access token from a refresh token. Client must have a refresh token for this to work.
Get an access token from the code returned by the URL paramter sent to the redirect URL.
Return a reference to an interface that provides access to asps operations.
Return a reference to an interface that provides access to channels operations.
Return a reference to an interface that provides access to chromeosdevices operations.
Return a reference to an interface that provides access to customer operations.
Return a reference to an interface that provides access to customers operations.
Return a reference to an interface that provides access to domainAliases operations.
Return a reference to an interface that provides access to domains operations.
Return a reference to an interface that provides access to groups operations.
Return a reference to an interface that provides access to members operations.
Return a reference to an interface that provides access to mobiledevices operations.
Return a reference to an interface that provides access to orgunits operations.
Return a reference to an interface that provides access to privileges operations.
Return a reference to an interface that provides access to resources operations.
Return a reference to an interface that provides access to roleAssignments operations.
Return a reference to an interface that provides access to roles operations.
Return a reference to an interface that provides access to schemas operations.
Return a reference to an interface that provides access to tokens operations.
Return a reference to an interface that provides access to twoStepVerification operations.
Return a reference to an interface that provides access to users operations.
Return a reference to an interface that provides access to verificationCodes operations.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more