pub struct NewRetentionLease {
pub days_valid: Option<i32>,
pub definition_id: Option<i32>,
pub owner_id: Option<String>,
pub protect_pipeline: Option<bool>,
pub run_id: Option<i32>,
}Expand description
Required information to create a new 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”.
definition_id: Option<i32>The pipeline definition of the run.
owner_id: Option<String>User-provided 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 to protect.
Implementations§
Trait Implementations§
Source§impl Clone for NewRetentionLease
impl Clone for NewRetentionLease
Source§fn clone(&self) -> NewRetentionLease
fn clone(&self) -> NewRetentionLease
Returns a duplicate 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 NewRetentionLease
impl Debug for NewRetentionLease
Source§impl Default for NewRetentionLease
impl Default for NewRetentionLease
Source§fn default() -> NewRetentionLease
fn default() -> NewRetentionLease
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NewRetentionLease
impl<'de> Deserialize<'de> for NewRetentionLease
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 NewRetentionLease
impl PartialEq for NewRetentionLease
Source§impl Serialize for NewRetentionLease
impl Serialize for NewRetentionLease
impl StructuralPartialEq for NewRetentionLease
Auto Trait Implementations§
impl Freeze for NewRetentionLease
impl RefUnwindSafe for NewRetentionLease
impl Send for NewRetentionLease
impl Sync for NewRetentionLease
impl Unpin for NewRetentionLease
impl UnwindSafe for NewRetentionLease
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
Source§fn deserialize_with(body: ResponseBody) -> Result<D, Error>
fn deserialize_with(body: ResponseBody) -> Result<D, Error>
Deserialize the response body using the specified format. Read more