pub struct CreateContainerBodyExpiresAfter {
pub anchor: CreateContainerBodyExpiresAfterAnchor,
pub minutes: u64,
}
Expand description
Container expiration time in seconds relative to the ‘anchor’ time.
Fields§
§anchor: CreateContainerBodyExpiresAfterAnchor
Time anchor for the expiration time. Currently only ‘last_active_at’ is supported.
minutes: u64
Implementations§
Source§impl CreateContainerBodyExpiresAfter
impl CreateContainerBodyExpiresAfter
Sourcepub fn builder() -> CreateContainerBodyExpiresAfterBuilder<((), ())>
pub fn builder() -> CreateContainerBodyExpiresAfterBuilder<((), ())>
Create a builder for building CreateContainerBodyExpiresAfter
.
On the builder, call .anchor(...)
, .minutes(...)
to set the values of the fields.
Finally, call .build()
to create the instance of CreateContainerBodyExpiresAfter
.
Trait Implementations§
Source§impl Clone for CreateContainerBodyExpiresAfter
impl Clone for CreateContainerBodyExpiresAfter
Source§fn clone(&self) -> CreateContainerBodyExpiresAfter
fn clone(&self) -> CreateContainerBodyExpiresAfter
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<'de> Deserialize<'de> for CreateContainerBodyExpiresAfter
impl<'de> Deserialize<'de> for CreateContainerBodyExpiresAfter
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 CreateContainerBodyExpiresAfter
impl PartialEq for CreateContainerBodyExpiresAfter
Source§fn eq(&self, other: &CreateContainerBodyExpiresAfter) -> bool
fn eq(&self, other: &CreateContainerBodyExpiresAfter) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateContainerBodyExpiresAfter
impl StructuralPartialEq for CreateContainerBodyExpiresAfter
Auto Trait Implementations§
impl Freeze for CreateContainerBodyExpiresAfter
impl RefUnwindSafe for CreateContainerBodyExpiresAfter
impl Send for CreateContainerBodyExpiresAfter
impl Sync for CreateContainerBodyExpiresAfter
impl Unpin for CreateContainerBodyExpiresAfter
impl UnwindSafe for CreateContainerBodyExpiresAfter
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