[][src]Struct gitlab_butler_lib::client::Client

pub struct Client {
    pub api_server: Url,
    pub client: Client,
}

Fields

api_server: Urlclient: Client

Implementations

impl Client[src]

pub fn new(api_server: Url, private_token: &[u8]) -> Result<Client>[src]

pub fn put_json<T: ?Sized>(
    &self,
    api_path: &str,
    message: &T
) -> Result<Response> where
    T: Serialize
[src]

pub fn post_json<T: ?Sized>(
    &self,
    api_path: &str,
    message: &T
) -> Result<Response> where
    T: Serialize
[src]

pub fn get_json<T: ?Sized>(
    &self,
    api_path: &str,
    message: &T
) -> Result<Response> where
    T: Serialize
[src]

pub fn put(&self, api_path: &str) -> Result<Response>[src]

pub fn get(&self, api_path: &str) -> Result<Response>[src]

pub fn get_paginated<'c>(&'c self, api_path: &'c str) -> Paginated<'_, ()>

Notable traits for Paginated<'t, T>

impl<'t, T> Iterator for Paginated<'t, T> where
    T: Serialize + Sized
type Item = Result<Response>;
[src]

pub fn get_json_paginated<'c, T>(
    &'c self,
    api_path: &'c str,
    message: &'c T
) -> Paginated<'_, T>

Notable traits for Paginated<'t, T>

impl<'t, T> Iterator for Paginated<'t, T> where
    T: Serialize + Sized
type Item = Result<Response>;
where
    T: Serialize + Sized
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.