Trait Trend

Source
pub trait Trend: Sized {
    // Required methods
    fn extract(text: &str) -> Vec<Self>;
    fn request(parameter: TrendingParameters) -> TrendingRequest;
}
Expand description

this trait represent different kind trending information, only repository is implemented at the moment

Required Methods§

Source

fn extract(text: &str) -> Vec<Self>

this method extract a list of trends from the raw HTML string

Source

fn request(parameter: TrendingParameters) -> TrendingRequest

this method construct a request for query

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§