pub struct ContainerResourceExpiresAfter {
pub anchor: Option<ContainerResourceExpiresAfterAnchor>,
pub minutes: Option<i64>,
}
Expand description
The container will expire after this time period. The anchor is the reference point for the expiration. The minutes is the number of minutes after the anchor before the container expires.
Fields§
§anchor: Option<ContainerResourceExpiresAfterAnchor>
The reference point for the expiration.
minutes: Option<i64>
The number of minutes after the anchor before the container expires.
Implementations§
Source§impl ContainerResourceExpiresAfter
impl ContainerResourceExpiresAfter
Sourcepub fn builder() -> ContainerResourceExpiresAfterBuilder<((), ())>
pub fn builder() -> ContainerResourceExpiresAfterBuilder<((), ())>
Create a builder for building ContainerResourceExpiresAfter
.
On the builder, call .anchor(...)
(optional), .minutes(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ContainerResourceExpiresAfter
.
Trait Implementations§
Source§impl Clone for ContainerResourceExpiresAfter
impl Clone for ContainerResourceExpiresAfter
Source§fn clone(&self) -> ContainerResourceExpiresAfter
fn clone(&self) -> ContainerResourceExpiresAfter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ContainerResourceExpiresAfter
impl Default for ContainerResourceExpiresAfter
Source§fn default() -> ContainerResourceExpiresAfter
fn default() -> ContainerResourceExpiresAfter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerResourceExpiresAfter
impl<'de> Deserialize<'de> for ContainerResourceExpiresAfter
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 ContainerResourceExpiresAfter
impl PartialEq for ContainerResourceExpiresAfter
Source§fn eq(&self, other: &ContainerResourceExpiresAfter) -> bool
fn eq(&self, other: &ContainerResourceExpiresAfter) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for ContainerResourceExpiresAfter
impl StructuralPartialEq for ContainerResourceExpiresAfter
Auto Trait Implementations§
impl Freeze for ContainerResourceExpiresAfter
impl RefUnwindSafe for ContainerResourceExpiresAfter
impl Send for ContainerResourceExpiresAfter
impl Sync for ContainerResourceExpiresAfter
impl Unpin for ContainerResourceExpiresAfter
impl UnwindSafe for ContainerResourceExpiresAfter
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