[−][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]
fn from(value: Container) -> 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,
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,