Struct azure_devops_rust_api::build::models::RetentionLeaseUpdate
source · pub struct RetentionLeaseUpdate {
pub days_valid: Option<i32>,
pub protect_pipeline: Option<bool>,
}
Expand description
An update to the retention parameters of a retention lease.
Fields§
§days_valid: Option<i32>
The number of days to consider the lease valid. A retention lease valid for more than 100 years (36500 days) will display as retaining the build “forever”.
protect_pipeline: Option<bool>
If set, this lease will also prevent the pipeline from being deleted while the lease is still valid.
Implementations§
Trait Implementations§
source§impl Clone for RetentionLeaseUpdate
impl Clone for RetentionLeaseUpdate
source§fn clone(&self) -> RetentionLeaseUpdate
fn clone(&self) -> RetentionLeaseUpdate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RetentionLeaseUpdate
impl Debug for RetentionLeaseUpdate
source§impl Default for RetentionLeaseUpdate
impl Default for RetentionLeaseUpdate
source§fn default() -> RetentionLeaseUpdate
fn default() -> RetentionLeaseUpdate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RetentionLeaseUpdate
impl<'de> Deserialize<'de> for RetentionLeaseUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RetentionLeaseUpdate
impl PartialEq for RetentionLeaseUpdate
source§fn eq(&self, other: &RetentionLeaseUpdate) -> bool
fn eq(&self, other: &RetentionLeaseUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RetentionLeaseUpdate
impl Serialize for RetentionLeaseUpdate
impl StructuralPartialEq for RetentionLeaseUpdate
Auto Trait Implementations§
impl RefUnwindSafe for RetentionLeaseUpdate
impl Send for RetentionLeaseUpdate
impl Sync for RetentionLeaseUpdate
impl Unpin for RetentionLeaseUpdate
impl UnwindSafe for RetentionLeaseUpdate
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