pub enum InMemoryBody {
Empty,
Json(Value),
Bytes(Vec<u8>),
Text(String),
}Variants§
Implementations§
Source§impl InMemoryBody
impl InMemoryBody
Trait Implementations§
Source§impl Clone for InMemoryBody
impl Clone for InMemoryBody
Source§fn clone(&self) -> InMemoryBody
fn clone(&self) -> InMemoryBody
Returns a duplicate 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 InMemoryBody
impl Debug for InMemoryBody
Source§impl Default for InMemoryBody
impl Default for InMemoryBody
Source§fn default() -> InMemoryBody
fn default() -> InMemoryBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InMemoryBody
impl<'de> Deserialize<'de> for InMemoryBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InMemoryBody> for Body
impl From<InMemoryBody> for Body
Source§fn from(value: InMemoryBody) -> Self
fn from(value: InMemoryBody) -> Self
Converts to this type from the input type.
Source§impl From<InMemoryBody> for Full<Bytes>
impl From<InMemoryBody> for Full<Bytes>
Source§fn from(val: InMemoryBody) -> Self
fn from(val: InMemoryBody) -> Self
Converts to this type from the input type.
Source§impl Hash for InMemoryBody
impl Hash for InMemoryBody
Source§impl Into<InMemoryBody> for Part<InMemoryBody>
impl Into<InMemoryBody> for Part<InMemoryBody>
Source§fn into(self) -> InMemoryBody
fn into(self) -> InMemoryBody
Converts this type into the (usually inferred) input type.
Source§impl Into<InMemoryBody> for String
impl Into<InMemoryBody> for String
Source§fn into(self) -> InMemoryBody
fn into(self) -> InMemoryBody
Converts this type into the (usually inferred) input type.
Source§impl Into<InMemoryBody> for Vec<u8>
impl Into<InMemoryBody> for Vec<u8>
Source§fn into(self) -> InMemoryBody
fn into(self) -> InMemoryBody
Converts this type into the (usually inferred) input type.
Source§impl Serialize for InMemoryBody
impl Serialize for InMemoryBody
Source§impl TryInto<Bytes> for InMemoryBody
impl TryInto<Bytes> for InMemoryBody
Source§impl TryInto<String> for InMemoryBody
impl TryInto<String> for InMemoryBody
Source§impl WriteBytes for InMemoryBody
impl WriteBytes for InMemoryBody
Auto Trait Implementations§
impl Freeze for InMemoryBody
impl RefUnwindSafe for InMemoryBody
impl Send for InMemoryBody
impl Sync for InMemoryBody
impl Unpin for InMemoryBody
impl UnwindSafe for InMemoryBody
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