IntoHeaders

Trait IntoHeaders 

Source
pub trait IntoHeaders {
    // Required method
    fn into_headers(self) -> Result<JsValue, Error>;

    // Provided method
    fn into_options(self) -> Result<Options, Error>
       where Self: Sized { ... }
}
Expand description

Types that can be converted into headers.

Required Methods§

Source

fn into_headers(self) -> Result<JsValue, Error>

Converts the value into headers.

Provided Methods§

Source

fn into_options(self) -> Result<Options, Error>
where Self: Sized,

Converts the value into options.

Implementations on Foreign Types§

Source§

impl IntoHeaders for Headers

Available on crate feature headers only.

Implementors§