pub struct ContainerResource {
pub id: String,
pub object: String,
pub name: String,
pub created_at: u64,
pub status: String,
pub expires_after: Option<ContainerResourceExpiresAfter>,
}
Fields§
§id: String
Unique identifier for the container.
object: String
The type of this object.
name: String
Name of the container.
created_at: u64
Unix timestamp (in seconds) when the container was created.
status: String
Status of the container (e.g., active, deleted).
expires_after: Option<ContainerResourceExpiresAfter>
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.
Implementations§
Source§impl ContainerResource
impl ContainerResource
Sourcepub fn builder() -> ContainerResourceBuilder<((), (), (), (), (), ())>
pub fn builder() -> ContainerResourceBuilder<((), (), (), (), (), ())>
Create a builder for building ContainerResource
.
On the builder, call .id(...)
, .object(...)
, .name(...)
, .created_at(...)
, .status(...)
, .expires_after(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ContainerResource
.
Trait Implementations§
Source§impl Clone for ContainerResource
impl Clone for ContainerResource
Source§fn clone(&self) -> ContainerResource
fn clone(&self) -> ContainerResource
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 ContainerResource
impl Debug for ContainerResource
Source§impl<'de> Deserialize<'de> for ContainerResource
impl<'de> Deserialize<'de> for ContainerResource
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 ContainerResource
impl PartialEq for ContainerResource
Source§impl Serialize for ContainerResource
impl Serialize for ContainerResource
impl StructuralPartialEq for ContainerResource
Auto Trait Implementations§
impl Freeze for ContainerResource
impl RefUnwindSafe for ContainerResource
impl Send for ContainerResource
impl Sync for ContainerResource
impl Unpin for ContainerResource
impl UnwindSafe for ContainerResource
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