pub struct Object { /* private fields */ }Implementations§
Source§impl Object
impl Object
pub fn reference(&self) -> &ObjectRef
pub async fn stat(&mut self) -> Result<ObjectMeta, S3Error>
pub async fn exists(&mut self) -> Result<bool, S3Error>
pub async fn stream( &mut self, options: Option<ReadOptions>, ) -> Result<ObjectReader, S3Error>
pub async fn bytes( &mut self, options: Option<ReadOptions>, ) -> Result<Vec<u8>, S3Error>
pub async fn text( &mut self, options: Option<ReadOptions>, ) -> Result<String, S3Error>
pub async fn json<T>(
&mut self,
options: Option<ReadOptions>,
) -> Result<T, S3Error>where
T: DeserializeOwned,
pub async fn write<B>( &mut self, body: B, options: Option<WriteOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn write_chunks<I, B>( &mut self, chunks: I, options: Option<WriteOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn write_bytes( &mut self, body: impl AsRef<[u8]>, options: Option<WriteOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn write_string( &mut self, body: impl AsRef<str>, options: Option<WriteOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn write_json<T>( &mut self, value: &T, options: Option<WriteOptions>, ) -> Result<ObjectMeta, S3Error>
pub async fn delete(&mut self) -> Result<(), S3Error>
pub async fn presign( &mut self, options: Option<PresignOptions>, ) -> Result<PresignResult, S3Error>
Auto Trait Implementations§
impl !Freeze for Object
impl !RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request