Struct azure_devops_rust_api::build::models::RetentionLease
source · pub struct RetentionLease {
pub created_on: Option<OffsetDateTime>,
pub definition_id: Option<i32>,
pub lease_id: Option<i32>,
pub owner_id: Option<String>,
pub protect_pipeline: Option<bool>,
pub run_id: Option<i32>,
pub valid_until: Option<OffsetDateTime>,
}
Expand description
A valid retention lease prevents automated systems from deleting a pipeline run.
Fields§
§created_on: Option<OffsetDateTime>
When the lease was created.
definition_id: Option<i32>
The pipeline definition of the run.
lease_id: Option<i32>
The unique identifier for this lease.
owner_id: Option<String>
Non-unique string that identifies the owner of a retention lease.
protect_pipeline: Option<bool>
If set, this lease will also prevent the pipeline from being deleted while the lease is still valid.
run_id: Option<i32>
The pipeline run protected by this lease.
valid_until: Option<OffsetDateTime>
The last day the lease is considered valid.
Implementations§
Trait Implementations§
source§impl Clone for RetentionLease
impl Clone for RetentionLease
source§fn clone(&self) -> RetentionLease
fn clone(&self) -> RetentionLease
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 RetentionLease
impl Debug for RetentionLease
source§impl Default for RetentionLease
impl Default for RetentionLease
source§fn default() -> RetentionLease
fn default() -> RetentionLease
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RetentionLease
impl<'de> Deserialize<'de> for RetentionLease
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 RetentionLease
impl PartialEq for RetentionLease
source§fn eq(&self, other: &RetentionLease) -> bool
fn eq(&self, other: &RetentionLease) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RetentionLease
impl Serialize for RetentionLease
impl StructuralPartialEq for RetentionLease
Auto Trait Implementations§
impl RefUnwindSafe for RetentionLease
impl Send for RetentionLease
impl Sync for RetentionLease
impl Unpin for RetentionLease
impl UnwindSafe for RetentionLease
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