Skip to main content

IntoBody

Trait IntoBody 

Source
pub trait IntoBody: Send {
    // Required method
    fn into_body(self) -> Bytes;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoBody for &str

Source§

impl IntoBody for ()

Source§

impl IntoBody for Bytes

Source§

impl IntoBody for String

Source§

impl IntoBody for Value

Source§

impl IntoBody for Vec<u8>

Implementors§