poem_openapi

Trait 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.

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.

Implementations on Foreign Types§

Source§

impl Webhook for ()

Source§

fn meta() -> Vec<MetaWebhook>

Source§

fn register(_: &mut Registry)

Implementors§