# bookclerk_plugin_abi::plugin_capnp::webhooks

| Item | Kind | Summary |
| --- | --- | --- |
| [`Server`](#server) | trait |  |
| [`Client`](#client) | struct |  |
| [`Owned`](#owned) | struct |  |
| [`ServerDispatch`](#serverdispatch) | struct |  |
| [`UrlParams`](#urlparams) | type alias |  |
| [`UrlResults`](#urlresults) | type alias |  |
| [`PullParams`](#pullparams) | type alias |  |
| [`PullResults`](#pullresults) | type alias |  |
| [`AckParams`](#ackparams) | type alias |  |
| [`AckResults`](#ackresults) | type alias |  |

## Modules

- [`url_params`](/docs/internals/crates/bookclerk_plugin_abi/plugin_capnp/webhooks/url_params/index.md)
- [`url_results`](/docs/internals/crates/bookclerk_plugin_abi/plugin_capnp/webhooks/url_results/index.md)
- [`pull_params`](/docs/internals/crates/bookclerk_plugin_abi/plugin_capnp/webhooks/pull_params/index.md)
- [`pull_results`](/docs/internals/crates/bookclerk_plugin_abi/plugin_capnp/webhooks/pull_results/index.md)
- [`ack_params`](/docs/internals/crates/bookclerk_plugin_abi/plugin_capnp/webhooks/ack_params/index.md)
- [`ack_results`](/docs/internals/crates/bookclerk_plugin_abi/plugin_capnp/webhooks/ack_results/index.md)

## Traits

### Server

```rust
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

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

#### Server::pull

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

#### Server::ack

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

## Structs

### Client

```rust
pub struct Client {
    pub client: Client,
}
```

#### Client::url_request

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

#### Client::pull_request

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

#### Client::ack_request

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

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

### Owned

```rust
pub struct Owned(/* private */);
```

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

### ServerDispatch

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

#### ServerDispatch::dispatch_call_internal

```rust
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

```rust
pub type UrlParams = Params<Owned>;
```

### UrlResults

```rust
pub type UrlResults = Results<Owned>;
```

### PullParams

```rust
pub type PullParams = Params<Owned>;
```

### PullResults

```rust
pub type PullResults = Results<Owned>;
```

### AckParams

```rust
pub type AckParams = Params<Owned>;
```

### AckResults

```rust
pub type AckResults = Results<Owned>;
```
