pub struct Container { /* private fields */ }
Expand description
this defines the container
resource
Implementations§
Source§impl Container
impl Container
Sourcepub fn info(&self) -> Result<ContainerMetadata, Error>
pub fn info(&self) -> Result<ContainerMetadata, Error>
returns container metadata
Source§impl Container
impl Container
Sourcepub fn get_data(
&self,
name: &str,
start: u64,
end: u64,
) -> Result<IncomingValue, Error>
pub fn get_data( &self, name: &str, start: u64, end: u64, ) -> Result<IncomingValue, Error>
retrieves an object or portion of an object, as a resource. Start and end offsets are inclusive. Once a data-blob resource has been created, the underlying bytes are held by the blobstore service for the lifetime of the data-blob resource, even if the object they came from is later deleted.
Source§impl Container
impl Container
Sourcepub fn write_data(&self, name: &str, data: &OutgoingValue) -> Result<(), Error>
pub fn write_data(&self, name: &str, data: &OutgoingValue) -> Result<(), Error>
creates or replaces an object with the data blob.
Source§impl Container
impl Container
Sourcepub fn list_objects(&self) -> Result<StreamObjectNames, Error>
pub fn list_objects(&self) -> Result<StreamObjectNames, Error>
returns list of objects in the container. Order is undefined.
Source§impl Container
impl Container
Sourcepub fn delete_objects(&self, names: &[ObjectName]) -> Result<(), Error>
pub fn delete_objects(&self, names: &[ObjectName]) -> Result<(), Error>
deletes multiple objects in the container
Source§impl Container
impl Container
Sourcepub fn object_info(&self, name: &str) -> Result<ObjectMetadata, Error>
pub fn object_info(&self, name: &str) -> Result<ObjectMetadata, Error>
returns metadata for the object
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more