[−][src]Struct openstack::object_storage::Object
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]
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]
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>,