pub struct Object { /* private fields */ }
Expand description
Implementations§
source§impl Object
impl Object
pub fn key(&self) -> String
pub fn version(&self) -> String
pub fn size(&self) -> u32
pub fn etag(&self) -> String
pub fn http_etag(&self) -> String
pub fn uploaded(&self) -> Date
pub fn http_metadata(&self) -> HttpMetadata
pub fn checksum(&self) -> R2Checksums
pub fn custom_metadata(&self) -> Result<HashMap<String, String>>
pub fn range(&self) -> Result<Range>
pub fn body(&self) -> Option<ObjectBody<'_>>
pub fn body_used(&self) -> Option<bool>
pub fn write_http_metadata(&self, headers: Headers) -> Result<()>
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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