Encoding

Trait Encoding 

Source
pub trait Encoding: ContentType {
    const METHOD: Method;
}
Expand description

Defines a particular encoding format, which can be used for serializing or deserializing data.

Required Associated Constants§

Source

const METHOD: Method

The HTTP method used for requests.

This should be POST in most cases.

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.

Implementors§

Source§

impl Encoding for DeleteUrl

Source§

const METHOD: Method = Method::DELETE

Source§

impl Encoding for GetUrl

Source§

const METHOD: Method = Method::GET

Source§

impl Encoding for MultipartFormData

Source§

const METHOD: Method = Method::POST

Source§

impl Encoding for PatchUrl

Source§

const METHOD: Method = Method::PATCH

Source§

impl Encoding for PostUrl

Source§

const METHOD: Method = Method::POST

Source§

impl Encoding for PutUrl

Source§

const METHOD: Method = Method::PUT

Source§

impl Encoding for Streaming

Source§

const METHOD: Method = Method::POST

Source§

impl Encoding for StreamingText

Source§

const METHOD: Method = Method::POST

Source§

impl<Codec: ContentType> Encoding for Patch<Codec>

Source§

const METHOD: Method = http::Method::PATCH

Source§

impl<Codec: ContentType> Encoding for Post<Codec>

Source§

const METHOD: Method = http::Method::POST

Source§

impl<Codec: ContentType> Encoding for Put<Codec>

Source§

const METHOD: Method = http::Method::PUT