pub struct CreateContainerBody {
pub name: String,
pub file_ids: Option<Vec<String>>,
pub expires_after: Option<CreateContainerBodyExpiresAfter>,
}
Fields§
§name: String
Name of the container to create.
file_ids: Option<Vec<String>>
IDs of files to copy to the container.
expires_after: Option<CreateContainerBodyExpiresAfter>
Container expiration time in seconds relative to the ‘anchor’ time.
Implementations§
Source§impl CreateContainerBody
impl CreateContainerBody
Sourcepub fn builder() -> CreateContainerBodyBuilder<((), (), ())>
pub fn builder() -> CreateContainerBodyBuilder<((), (), ())>
Create a builder for building CreateContainerBody
.
On the builder, call .name(...)
, .file_ids(...)
(optional), .expires_after(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateContainerBody
.
Trait Implementations§
Source§impl Clone for CreateContainerBody
impl Clone for CreateContainerBody
Source§fn clone(&self) -> CreateContainerBody
fn clone(&self) -> CreateContainerBody
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 CreateContainerBody
impl Debug for CreateContainerBody
Source§impl<'de> Deserialize<'de> for CreateContainerBody
impl<'de> Deserialize<'de> for CreateContainerBody
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 CreateContainerBody
impl PartialEq for CreateContainerBody
Source§impl Serialize for CreateContainerBody
impl Serialize for CreateContainerBody
impl StructuralPartialEq for CreateContainerBody
Auto Trait Implementations§
impl Freeze for CreateContainerBody
impl RefUnwindSafe for CreateContainerBody
impl Send for CreateContainerBody
impl Sync for CreateContainerBody
impl Unpin for CreateContainerBody
impl UnwindSafe for CreateContainerBody
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