Trait poem_openapi::Webhook

source ·
pub trait Webhook: Sized {
    // Required methods
    fn meta() -> Vec<MetaWebhook>;
    fn register(registry: &mut Registry);
}
Expand description

Represents a webhook object.

Required Methods§

source

fn meta() -> Vec<MetaWebhook>

Gets metadata of this webhooks object.

source

fn register(registry: &mut Registry)

Register some types to the registry.

Implementations on Foreign Types§

source§

impl Webhook for ()

source§

fn meta() -> Vec<MetaWebhook>

source§

fn register(_: &mut Registry)

Implementors§