Param

Trait Param 

Source
pub trait Param: Sized {
    // Required methods
    fn name() -> &'static str;
    fn value(&self) -> &'static str;

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

trait for trending parameters like language, period, used for constructing request

Required Methods§

Source

fn name() -> &'static str

Source

fn value(&self) -> &'static str

Provided Methods§

Source

fn query(&self) -> (&'static str, &'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§