[−][src]Struct openstack::object_storage::NewObject
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]
K: Into<String>,
V: Into<String>,
Insert a new metadata item.
Trait Implementations
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,
R: Unpin,
impl<R> !UnwindSafe for NewObject<R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,