[][src]Struct openstack::object_storage::NewObject

pub struct NewObject<R> { /* fields omitted */ }

A request to create an object.

Implementations

impl<R: Read + Sync + Send + 'static> NewObject<R>[src]

pub fn create(self) -> Result<Object>[src]

Request creation of the object.

pub fn metadata(&mut self) -> &mut HashMap<String, String>[src]

Metadata to set on the object.

pub fn with_delete_after(self, ttl: u32) -> NewObject<R>[src]

Set TTL in seconds for the object.

pub fn with_delete_at<T: TimeZone>(self, datetime: DateTime<T>) -> NewObject<R>[src]

Set the date and time when the object must be deleted.

pub fn with_metadata<K, V>(self, key: K, item: V) -> NewObject<R> where
    K: Into<String>,
    V: Into<String>, 
[src]

Insert a new metadata item.

Trait Implementations

impl<R: Debug> Debug for NewObject<R>[src]

Auto Trait Implementations

impl<R> !RefUnwindSafe for NewObject<R>

impl<R> !Send for NewObject<R>

impl<R> !Sync for NewObject<R>

impl<R> Unpin for NewObject<R> where
    R: Unpin

impl<R> !UnwindSafe for NewObject<R>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.