[][src]Trait misskey_core::Request

pub trait Request: Serialize {
    type Response: DeserializeOwned;

    pub const ENDPOINT: &'static str;
}

API request.

Request type is Serialize with associated response type Response and endpoint name ENDPOINT.

Associated Types

type Response: DeserializeOwned[src]

Response type of this request.

Loading content...

Associated Constants

pub const ENDPOINT: &'static str[src]

The name of the corresponding endpoint.

Loading content...

Implementations on Foreign Types

impl<R: ?Sized, '_> Request for &'_ R where
    R: Request
[src]

type Response = R::Response

impl<R: ?Sized, '_> Request for &'_ mut R where
    R: Request
[src]

type Response = R::Response

impl<R: ?Sized> Request for Box<R> where
    R: Request
[src]

type Response = R::Response

Loading content...

Implementors

Loading content...