pub struct CreateContainerBody {
    pub name: String,
    pub file_ids: Option<Vec<String>>,
    pub expires_after: Option<ExpiresAfter>,
}Fields§
§name: StringName of the container to create.
file_ids: Option<Vec<String>>IDs of files to copy to the container.
expires_after: Option<ExpiresAfter>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