[][src]Struct openstack::object_storage::Object

pub struct Object { /* fields omitted */ }
[]

Structure representing an object.

Implementations

impl Object[src][]

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

Delete the object.

pub fn download(&self) -> Result<impl Read + '_>[src][]

Download the object.

The object can be read from the resulting reader.

pub fn bytes(&self) -> u64[src][]

Total size of the object.

pub fn container_name(&self) -> &String[src][]

Container name.

pub fn content_type(&self) -> &Option<String>[src][]

Object content type (if set).

pub fn name(&self) -> &String[src][]

Object name.

pub fn url(&self) -> Result<Url>[src][]

Object url.

Trait Implementations

impl Clone for Object[src][+]

impl Debug for Object[src][+]

impl From<Object> for ObjectRef[src][+]

impl Refresh for Object[src][+]

fn refresh(&mut self) -> Result<()>[src][]

Refresh the object.

Auto Trait Implementations

impl !RefUnwindSafe for Object

impl !Send for Object

impl !Sync for Object

impl Unpin for Object

impl !UnwindSafe for Object

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> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

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.