Struct azure_devops_rust_api::artifacts::retention_policies::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn get_retention_policy(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn get_retention_policy( &self, organization: impl Into<String>, feed_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Get the retention policy for a feed.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization
: The name of the Azure DevOps organization.feed_id
: Name or ID of the feed.project
: Project ID or project name
sourcepub fn set_retention_policy(
&self,
organization: impl Into<String>,
body: impl Into<FeedRetentionPolicy>,
feed_id: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn set_retention_policy( &self, organization: impl Into<String>, body: impl Into<FeedRetentionPolicy>, feed_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Set the retention policy for a feed.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization
: The name of the Azure DevOps organization.body
: Feed retention policy.feed_id
: Name or ID of the feed.project
: Project ID or project name
sourcepub fn delete_retention_policy(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn delete_retention_policy( &self, organization: impl Into<String>, feed_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Delete the retention policy for a feed.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization
: The name of the Azure DevOps organization.feed_id
: Name or ID of the feed.project
: Project ID or project name
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