tenor 0.1.1

Rust api for Tenor.com
Documentation
use codes_iso_639::part_1::LanguageCode;
use serde::{Deserialize, Serialize};

use crate::ContentFilter;

#[derive(Debug, Default)]
pub struct Parameters {
    pub client_key: String,
    pub content_filter: ContentFilter,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Response {
    /// Language of the returned content.
    pub locale: LanguageCode,
    /// All the [`Tag`]s found.
    pub tags: Vec<Tag>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Tag {
    /// The term, example: "excited".
    pub searchterm: String,
    /// Image api path.
    pub path: String,
    /// Full url of the gif.
    pub image: String,
    /// The name, example: "#excited".
    pub name: String,
}