[][src]Trait onedrive_api::Api

#[must_use = "Api do nothing unless you `execute` them"]
pub trait Api: Sealed + Send + Sync + Sized {
    type Response;
    fn execute(self, client: &impl Client) -> Result<Self::Response>;
}

An abstract API request, conbining constructed HTTP request and response parser.

The operation of API will only be performed when it is executed on an HTTP Client.

Associated Types

type Response

The parsed response type of the API endpoint.

Loading content...

Required methods

fn execute(self, client: &impl Client) -> Result<Self::Response>

Perform the operation through an HTTP Client.

Note that some Api may execute zero or more than one requests. See the documentation of the api function for more detail.

Loading content...

Implementors

Loading content...