Trait ApiRequest

Source
pub trait ApiRequest: Serialize {
    type Reply: DeserializeOwned + Debug;

    const ROUTE: &'static str;

    // Provided method
    fn route(&self) -> &'static str { ... }
}

Required Associated Constants§

Source

const ROUTE: &'static str

Required Associated Types§

Provided Methods§

Source

fn route(&self) -> &'static str

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§

const ROUTE: &'static str = "api/edge.search"

Source§

type Reply = SearchResult

Source§

impl ApiRequest for phabricator_api::edge::search::SearchCursor<'_>

Source§

const ROUTE: &'static str = "api/edge.search"

Source§

type Reply = SearchResult

Source§

impl ApiRequest for Info

Source§

const ROUTE: &'static str = "api/maniphest.info"

Source§

type Reply = InfoResult

Source§

impl ApiRequest for Lookup

Source§

const ROUTE: &'static str = "api/phid.lookup"

Source§

type Reply = LookupResult

Source§

impl ApiRequest for Query

Source§

const ROUTE: &'static str = "api/phid.query"

Source§

type Reply = QueryResult

Source§

impl ApiRequest for phabricator_api::maniphest::search::Search

Source§

const ROUTE: &'static str = "api/maniphest.search"

Source§

type Reply = SearchResult<AttachmentsResult, Fields>

Source§

impl ApiRequest for phabricator_api::maniphest::search::SearchCursor<'_>

Source§

const ROUTE: &'static str = "api/maniphest.search"

Source§

type Reply = SearchResult<AttachmentsResult, Fields>

Source§

impl ApiRequest for phabricator_api::project::search::Search

Source§

const ROUTE: &'static str = "api/project.search"

Source§

type Reply = SearchResult<AttachmentsResult, Fields>

Source§

impl ApiRequest for phabricator_api::project::search::SearchCursor<'_>

Source§

const ROUTE: &'static str = "api/project.search"

Source§

type Reply = SearchResult<AttachmentsResult, Fields>