pub struct Client(/* private fields */);Implementations§
Source§impl Client
impl Client
Sourcepub fn list(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn list( &self, organization: impl Into<String>, repository_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Queries the provided repository for its refs and returns them.
Arguments:
organization: The name of the Azure DevOps organization.repository_id: The name or ID of the repository.project: Project ID or project name
Sourcepub fn update_refs(
&self,
organization: impl Into<String>,
body: Vec<GitRefUpdate>,
repository_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn update_refs( &self, organization: impl Into<String>, body: Vec<GitRefUpdate>, repository_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Creating, updating, or deleting refs(branches).
Updating a ref means making it point at a different commit than it used to. You must specify both the old and new commit to avoid race conditions.
Arguments:
organization: The name of the Azure DevOps organization.body: List of ref updates to attempt to performrepository_id: The name or ID of the repository.project: Project ID or project name
Sourcepub fn update_ref(
&self,
organization: impl Into<String>,
body: impl Into<GitRefUpdate>,
repository_id: impl Into<String>,
filter: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn update_ref( &self, organization: impl Into<String>, body: impl Into<GitRefUpdate>, repository_id: impl Into<String>, filter: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Lock or Unlock a branch.
Arguments:
organization: The name of the Azure DevOps organization.body: The ref update action (lock/unlock) to performrepository_id: The name or ID of the repository.filter: The name of the branch to lock/unlockproject: Project ID or project name
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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