Skip to main content

UpdateExtractor

Trait UpdateExtractor 

Source
pub trait UpdateExtractor: Sized {
    // Required method
    fn extract(update: &Update) -> Option<Self>;

    // Provided method
    fn describe() -> &'static str { ... }
}
Expand description

Typed extractor contract for business handlers.

Required Methods§

Source

fn extract(update: &Update) -> Option<Self>

Provided Methods§

Source

fn describe() -> &'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§