Struct graph_http::api_impl::BodyRead
source · pub struct BodyRead { /* private fields */ }
Implementations§
source§impl BodyRead
impl BodyRead
pub fn new(buf: String) -> BodyRead
pub fn from_serialize<T: Serialize>(body: &T) -> GraphResult<BodyRead>
pub fn from_read<T: Read>(reader: T) -> GraphResult<BodyRead>
pub async fn from_async_read<T: AsyncReadExt + Unpin>( reader: T ) -> GraphResult<BodyRead>
Trait Implementations§
source§impl TryFrom<&FileConfig> for BodyRead
impl TryFrom<&FileConfig> for BodyRead
§type Error = GraphFailure
type Error = GraphFailure
The type returned in the event of a conversion error.
source§impl TryFrom<FileConfig> for BodyRead
impl TryFrom<FileConfig> for BodyRead
§type Error = GraphFailure
type Error = GraphFailure
The type returned in the event of a conversion error.