[−][src]Struct openstack::object_storage::Container
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][+]
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][+]
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,
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][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,