bookclerk_plugin_abi::plugin_capnp::webhooks

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

Item Kind Summary
Server trait
Client struct
Owned struct
ServerDispatch struct
UrlParams type alias
UrlResults type alias
PullParams type alias
PullResults type alias
AckParams type alias
AckResults type alias

Modules

Traits

Server

pub trait Server: 'static {
    fn url(
        self: Rc<Self>,
        _: UrlParams,
        _: UrlResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn pull(
        self: Rc<Self>,
        _: PullParams,
        _: PullResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
    fn ack(
        self: Rc<Self>,
        _: AckParams,
        _: AckResults,
    ) -> impl Future<Output = Result<(), Error>> + 'static;
}

Server::url

fn url(
    self: Rc<Self>,
    _: UrlParams,
    _: UrlResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::pull

fn pull(
    self: Rc<Self>,
    _: PullParams,
    _: PullResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Server::ack

fn ack(
    self: Rc<Self>,
    _: AckParams,
    _: AckResults,
) -> impl Future<Output = Result<(), Error>> + 'static

Structs

Client

pub struct Client {
    pub client: Client,
}

Client::url_request

pub fn url_request(&self) -> Request<Owned, Owned>

Client::pull_request

pub fn pull_request(&self) -> Request<Owned, Owned>

Client::ack_request

pub fn ack_request(&self) -> Request<Owned, Owned>

Implements: Clone, FromClientHook, FromPointerBuilder<'a>, FromPointerReader<'a>, FromServer<_S>, HasTypeId, SetterInput<Owned>

Owned

pub struct Owned(/* private */);

Implements: Clone, Copy, Introspect, Owned, Pipelined, SetterInput<Owned>

ServerDispatch

pub struct ServerDispatch<_T> {
    pub server: Rc<_T>,
}

ServerDispatch::dispatch_call_internal

pub fn dispatch_call_internal(
    this: Rc<_T>,
    method_id: u16,
    params: Params<Owned>,
    results: Results<Owned>,
) -> DispatchCallResult

Implements: Clone, Deref, Server

Type aliases

UrlParams

pub type UrlParams = Params<Owned>;

UrlResults

pub type UrlResults = Results<Owned>;

PullParams

pub type PullParams = Params<Owned>;

PullResults

pub type PullResults = Results<Owned>;

AckParams

pub type AckParams = Params<Owned>;

AckResults

pub type AckResults = Results<Owned>;

Generated from crates/bookclerk-plugin-abi at main · View as Markdown