Trait CurlBodyRequest

Source
pub trait CurlBodyRequest {
    // Required method
    fn get_bytes(&self) -> Option<&Vec<u8>>;
}
Expand description

The purpose of this trait is to be able to accept request body with Option<Vec> or Vec

Required Methods§

Source

fn get_bytes(&self) -> Option<&Vec<u8>>

Implementations on Foreign Types§

Source§

impl CurlBodyRequest for Option<Vec<u8>>

Source§

fn get_bytes(&self) -> Option<&Vec<u8>>

Source§

impl CurlBodyRequest for Vec<u8>

Source§

fn get_bytes(&self) -> Option<&Vec<u8>>

Implementors§