anaso_site_api_models 0.0.7

API models for Ana.so
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// Website meta tags.
#[derive(Debug, Deserialize, Serialize)]
pub struct SocialData {
    /// Key-value pairs.
    ///
    /// Example:
    /// ```text
    /// [
    ///     ("og:title", "a/Hejmo"),
    ///     ("og:description", "La socia retejo nur por Esperantistoj"),
    ///     ("og:url", "https://ana.so/a/Hejmo"),
    /// ]
    /// ```
    pub tags: Vec<(String, String)>,
}