pub struct Session { /* private fields */ }Expand description
TODO: document
Implementations§
Source§impl Session
impl Session
Sourcepub fn delete(&self, key: &str) -> DeleteBuilder
pub fn delete(&self, key: &str) -> DeleteBuilder
Deletes the object with the given key.
Source§impl Session
impl Session
Sourcepub fn get(&self, key: &str) -> GetBuilder
pub fn get(&self, key: &str) -> GetBuilder
Requests the object with the given key.
Source§impl Session
impl Session
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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