[−][src]Struct azure_rs::AzureClient
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]
A: Into<String>,
O: Into<String>,
C: Into<Option<Credentials>>,
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]
host: H,
agent: A,
org: O,
credentials: C
) -> Result<Self> where
H: Into<String>,
A: Into<String>,
O: Into<String>,
C: Into<Option<Credentials>>,
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]
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>>,
pub fn set_credentials<CR>(&mut self, credentials: CR) where
CR: Into<Option<Credentials>>,
[src]
CR: Into<Option<Credentials>>,
pub fn set_api_version<V>(&mut self, version: V) where
V: Into<ApiVersion>,
[src]
V: Into<ApiVersion>,
pub fn set_organization<O>(&mut self, org: O) where
O: Into<String>,
[src]
O: Into<String>,
pub fn projects(&self) -> Projects
[src]
pub fn project<P>(&self, project: P) -> Project where
P: Into<String>,
[src]
P: Into<String>,
pub fn repo<P, R>(&self, project: P, repo: R) -> Repository where
P: Into<String>,
R: Into<String>,
[src]
P: Into<String>,
R: Into<String>,
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]
P: Into<String>,
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]
fn clone(&self) -> AzureClient
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AzureClient
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AzureClient
impl Send for AzureClient
impl Sync for AzureClient
impl Unpin for AzureClient
impl !UnwindSafe for AzureClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,