Struct object_store::PutPayload
source · pub struct PutPayload(/* private fields */);
Expand description
A cheaply cloneable, ordered collection of Bytes
Implementations§
source§impl PutPayload
impl PutPayload
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new empty PutPayload
sourcepub fn from_static(s: &'static [u8]) -> Self
pub fn from_static(s: &'static [u8]) -> Self
Creates a PutPayload
from a static slice
sourcepub fn from_bytes(s: Bytes) -> Self
pub fn from_bytes(s: Bytes) -> Self
Creates a PutPayload
from a Bytes
sourcepub fn content_length(&self) -> usize
pub fn content_length(&self) -> usize
Returns the total length of the Bytes
in this payload
sourcepub fn iter(&self) -> PutPayloadIter<'_> ⓘ
pub fn iter(&self) -> PutPayloadIter<'_> ⓘ
Returns an iterator over the Bytes
in this payload
Trait Implementations§
source§impl AsRef<[Bytes]> for PutPayload
impl AsRef<[Bytes]> for PutPayload
source§impl Clone for PutPayload
impl Clone for PutPayload
source§fn clone(&self) -> PutPayload
fn clone(&self) -> PutPayload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PutPayload
impl Debug for PutPayload
source§impl Default for PutPayload
impl Default for PutPayload
source§impl From<&'static [u8]> for PutPayload
impl From<&'static [u8]> for PutPayload
source§impl From<&'static str> for PutPayload
impl From<&'static str> for PutPayload
source§impl From<Bytes> for PutPayload
impl From<Bytes> for PutPayload
source§impl From<PutPayload> for Bytes
impl From<PutPayload> for Bytes
source§fn from(value: PutPayload) -> Self
fn from(value: PutPayload) -> Self
Converts to this type from the input type.
source§impl From<PutPayloadMut> for PutPayload
impl From<PutPayloadMut> for PutPayload
source§fn from(value: PutPayloadMut) -> Self
fn from(value: PutPayloadMut) -> Self
Converts to this type from the input type.
source§impl From<String> for PutPayload
impl From<String> for PutPayload
source§impl FromIterator<Bytes> for PutPayload
impl FromIterator<Bytes> for PutPayload
source§impl FromIterator<u8> for PutPayload
impl FromIterator<u8> for PutPayload
source§impl<'a> IntoIterator for &'a PutPayload
impl<'a> IntoIterator for &'a PutPayload
source§impl IntoIterator for PutPayload
impl IntoIterator for PutPayload
Auto Trait Implementations§
impl Freeze for PutPayload
impl RefUnwindSafe for PutPayload
impl Send for PutPayload
impl Sync for PutPayload
impl Unpin for PutPayload
impl UnwindSafe for PutPayload
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more