pub struct Client { /* private fields */ }Expand description
A scoped objectstore client that can access objects in a specific use case and scope.
Implementations§
Source§impl Client
impl Client
Sourcepub fn get<'a>(&'a self, id: &'a str) -> GetBuilder<'a>
pub fn get<'a>(&'a self, id: &'a str) -> GetBuilder<'a>
Requests the object with the given id.
Source§impl Client
impl Client
Sourcepub fn put(&self, body: impl Into<Bytes>) -> PutBuilder<'_>
pub fn put(&self, body: impl Into<Bytes>) -> PutBuilder<'_>
Creates a PUT request for a [Bytes]-like type.
Sourcepub fn put_stream(&self, body: ClientStream) -> PutBuilder<'_>
pub fn put_stream(&self, body: ClientStream) -> PutBuilder<'_>
Creates a PUT request with a stream.
Sourcepub fn put_read<R>(&self, body: R) -> PutBuilder<'_>
pub fn put_read<R>(&self, body: R) -> PutBuilder<'_>
Creates a PUT request with an [AsyncRead] type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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