pub trait PatchRequest: Sized {
    type Request: Encodable;

    // Required methods
    fn path(&self) -> Cow<'_, str>;
    fn body(&self) -> Self::Request;

    // Provided method
    fn request(self) -> Patch<Self> { ... }
}
Expand description

PATCH Request method.

Required Associated Types§

source

type Request: Encodable

Request body type.

Required Methods§

source

fn path(&self) -> Cow<'_, str>

Get path of request.

source

fn body(&self) -> Self::Request

Get body of request.

Provided Methods§

source

fn request(self) -> Patch<Self>

Turn self into Request.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: PatchRequest> PatchRequest for &T

§

type Request = <T as PatchRequest>::Request

source§

fn path(&self) -> Cow<'_, str>

source§

fn body(&self) -> Self::Request

Implementors§