Struct azure_rust::AzureClient
source · [−]pub struct AzureClient { /* private fields */ }Expand description
Entry point interface for interacting with Azure API
Implementations
sourceimpl AzureClient
impl AzureClient
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>>,
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>>,
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>>,
pub fn set_credentials<CR>(&mut self, credentials: CR) where
CR: Into<Option<Credentials>>,
pub fn set_api_version<V>(&mut self, version: V) where
V: Into<ApiVersion>,
pub fn set_host<H>(&mut self, host: H) where
H: Into<String>,
pub fn set_organization<O>(&mut self, org: O) where
O: Into<String>,
pub fn projects(&self) -> Projects
pub fn project<P>(&self, project: P) -> Project where
P: Into<String>,
pub fn repo<P, R>(&self, project: P, repo: R) -> Repository where
P: Into<String>,
R: Into<String>,
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 where
P: Into<String>,
pub fn repos<P>(&self, project: P) -> Repositories where
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
sourceimpl Clone for AzureClient
impl Clone for AzureClient
sourcefn clone(&self) -> AzureClient
fn clone(&self) -> AzureClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more