Struct azure_devops_rust_api::wit::fields::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
Returns information for all fields. The project ID/name parameter is optional.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project name
sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<WorkItemField2>,
project: impl Into<String>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<WorkItemField2>, project: impl Into<String> ) -> RequestBuilder
Create a new field.
Arguments:
organization
: The name of the Azure DevOps organization.body
: New field definitionproject
: Project ID or project name
sourcepub fn get(
&self,
organization: impl Into<String>,
field_name_or_ref_name: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, field_name_or_ref_name: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Gets information on a specific field.
Arguments:
organization
: The name of the Azure DevOps organization.field_name_or_ref_name
: Field simple name or reference nameproject
: Project ID or project name
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<FieldUpdate>,
field_name_or_ref_name: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<FieldUpdate>, field_name_or_ref_name: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Update a field.
Arguments:
organization
: The name of the Azure DevOps organization.body
: Payload contains desired value of the field’s propertiesfield_name_or_ref_name
: Name/reference name of the field to be updatedproject
: Project ID or project name
sourcepub fn delete(
&self,
organization: impl Into<String>,
field_name_or_ref_name: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, field_name_or_ref_name: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Deletes the field. To undelete a filed, see “Update Field” API.
Arguments:
organization
: The name of the Azure DevOps organization.field_name_or_ref_name
: Field simple name or reference nameproject
: 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