Trait gfas_api::BuilderExt

source ·
pub trait BuilderExt {
    // Required methods
    fn token(self, token: &str) -> Self;
    fn endpoint(self, endpoint: Url) -> Result<GitHub>;
}
Expand description

Extension for reqwest::ClientBuilder.

Required Methods§

source

fn token(self, token: &str) -> Self

Sets the GitHub token for every request.

source

fn endpoint(self, endpoint: Url) -> Result<GitHub>

Builds the GitHub client with API endpoint url.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BuilderExt for ClientBuilder

source§

fn token(self, token: &str) -> Self

source§

fn endpoint(self, endpoint: Url) -> Result<GitHub>

Implementors§