[−][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,
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>,