pub struct AzureClient { /* private fields */ }
Expand description
Entry point interface for interacting with Azure API
Implementations§
Source§impl AzureClient
impl AzureClient
pub fn new<A, O, C>(agent: A, org: O, credentials: C) -> Result<Self>
pub fn host<H, O, A, C>( host: H, agent: A, org: O, credentials: C, ) -> Result<Self>
pub fn custom<H, A, O, CR>( host: H, agent: A, org: O, credentials: CR, http: Client, ) -> Self
pub fn set_credentials<CR>(&mut self, credentials: CR)
pub fn set_api_version<V>(&mut self, version: V)where
V: Into<ApiVersion>,
pub fn set_host<H>(&mut self, host: H)
pub fn set_organization<O>(&mut self, org: O)
pub async fn work_item(&self, id: usize) -> Result<WorkItem>
pub async fn query_work_items(&self, query: &str) -> Result<Vec<WorkItem>>
pub async fn work_items(&self) -> Result<Vec<WorkItem>>
pub fn projects(&self) -> Projects
pub fn project<P>(&self, project: P) -> Project
pub fn repo<P, R>(&self, project: P, repo: R) -> Repository
Sourcepub fn org_repos(&self)
pub fn org_repos(&self)
Get all repos in a organization
GET https://dev.azure.com/{organization}/_apis/git/repositories?api-version=
Sourcepub fn repos<P>(&self, project: P) -> Repositories
pub fn repos<P>(&self, project: P) -> Repositories
Get all repos in a project
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories?api-version=5.1
Trait Implementations§
Source§impl Clone for AzureClient
impl Clone for AzureClient
Source§fn clone(&self) -> AzureClient
fn clone(&self) -> AzureClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AzureClient
impl !RefUnwindSafe for AzureClient
impl Send for AzureClient
impl Sync for AzureClient
impl Unpin for AzureClient
impl !UnwindSafe for AzureClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more