1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! Represent a Google Trend Property

use strum_macros::{Display, EnumString, EnumVariantNames};
/// Create a new Property.
///
/// The available property are :
/// - `web`, `images`, `news`, `froogle` (Google Shopping), and `youtube`
///
/// Returns a `Property` instance.
///
/// # Example
/// ```
/// # use rtrend::Property;
/// let property = Property::Web;
/// ```

#[derive(PartialEq, Display, Debug, EnumString, Clone, EnumVariantNames)]
#[strum(serialize_all = "kebab_case")]
pub enum Property {
    #[strum(serialize = "")]
    Web,
    Images,
    News,
    Froogle,
    Youtube,
}