Skip to main content

RequestBuilderExt

Trait RequestBuilderExt 

Source
pub trait RequestBuilderExt: Sized {
    // Required method
    fn signed_bcs<T>(self, signed_bcs: &Signed<&T>) -> Result<Self, Error>
       where T: Signable + Serialize;
}
Expand description

Extension trait on reqwest::RequestBuilder for easily modifying requests as they’re constructed.

Required Methods§

Source

fn signed_bcs<T>(self, signed_bcs: &Signed<&T>) -> Result<Self, Error>
where T: Signable + Serialize,

Set the request body to a ed25519::Signed<T> serialized to BCS with corresponding content type header.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RequestBuilderExt for RequestBuilder

Source§

fn signed_bcs<T>(self, signed_bcs: &Signed<&T>) -> Result<Self, Error>
where T: Signable + Serialize,

Implementors§