Struct azure_devops_rust_api::build::templates::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn list(
&self,
organization: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn list( &self, organization: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Gets all definition templates.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project name
sourcepub fn get(
&self,
organization: impl Into<String>,
project: impl Into<String>,
template_id: impl Into<String>
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, project: impl Into<String>, template_id: impl Into<String> ) -> RequestBuilder
Gets a specific build definition template.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project nametemplate_id
: The ID of the requested template.
sourcepub fn save_template(
&self,
organization: impl Into<String>,
body: impl Into<BuildDefinitionTemplate>,
project: impl Into<String>,
template_id: impl Into<String>
) -> RequestBuilder
pub fn save_template( &self, organization: impl Into<String>, body: impl Into<BuildDefinitionTemplate>, project: impl Into<String>, template_id: impl Into<String> ) -> RequestBuilder
Updates an existing build definition template.
Arguments:
organization
: The name of the Azure DevOps organization.body
: The new version of the template.project
: Project ID or project nametemplate_id
: The ID of the template.
sourcepub fn delete(
&self,
organization: impl Into<String>,
project: impl Into<String>,
template_id: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, project: impl Into<String>, template_id: impl Into<String> ) -> RequestBuilder
Deletes a build definition template.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project nametemplate_id
: The ID of the template.
Auto Trait Implementations§
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