[][src]Struct azure_rs::AzureClient

pub struct AzureClient { /* fields omitted */ }

Entry point interface for interacting with Azure API

Implementations

impl AzureClient[src]

pub fn new<A, O, C>(agent: A, org: O, credentials: C) -> Result<Self> where
    A: Into<String>,
    O: Into<String>,
    C: Into<Option<Credentials>>, 
[src]

pub fn host<H, O, A, C>(
    host: H,
    agent: A,
    org: O,
    credentials: C
) -> Result<Self> where
    H: Into<String>,
    A: Into<String>,
    O: Into<String>,
    C: Into<Option<Credentials>>, 
[src]

pub fn custom<H, A, O, CR>(
    host: H,
    agent: A,
    org: O,
    credentials: CR,
    http: Client
) -> Self where
    H: Into<String>,
    A: Into<String>,
    O: Into<String>,
    CR: Into<Option<Credentials>>, 
[src]

pub fn set_credentials<CR>(&mut self, credentials: CR) where
    CR: Into<Option<Credentials>>, 
[src]

pub fn set_api_version<V>(&mut self, version: V) where
    V: Into<ApiVersion>, 
[src]

pub fn set_organization<O>(&mut self, org: O) where
    O: Into<String>, 
[src]

pub fn projects(&self) -> Projects[src]

pub fn project<P>(&self, project: P) -> Project where
    P: Into<String>, 
[src]

pub fn repo<P, R>(&self, project: P, repo: R) -> Repository where
    P: Into<String>,
    R: Into<String>, 
[src]

pub fn org_repos(&self)[src]

Get all repos in a organization

GET https://dev.azure.com/{organization}/_apis/git/repositories?api-version=

pub fn repos<P>(&self, project: P) -> Repositories where
    P: Into<String>, 
[src]

Get all repos in a project

GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories?api-version=5.1

Trait Implementations

impl Clone for AzureClient[src]

impl Debug for AzureClient[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.