[][src]Struct openstack::object_storage::Container

pub struct Container { /* fields omitted */ }

Structure representing a single container.

Implementations

impl Container[src]

pub fn delete(self, delete_objects: bool) -> Result<()>[src]

Delete the container.

If delete_objects is true, all objects inside the container are deleted first. Otherwise deletion will fail if the container is non-empty.

pub fn find_objects(&self) -> ObjectQuery[src]

Find objects inside this container.

Returns a query.

pub fn list_objects(&self) -> Result<Vec<Object>>[src]

List all objects inside this container.

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

Total size of the container.

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

Container name.

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

Number of objects in the container.

Trait Implementations

impl Clone for Container[src]

impl Debug for Container[src]

impl From<Container> for ContainerRef[src]

impl Refresh for Container[src]

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

Refresh the container.

Auto Trait Implementations

impl !RefUnwindSafe for Container

impl !Send for Container

impl !Sync for Container

impl Unpin for Container

impl !UnwindSafe for Container

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.