anaso_site_api_models 0.0.1

API models for Ana.so
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::rc::Rc;

use serde::{Deserialize, Serialize};

use crate::stela::Motion;

/// Ads. Gotta make money.
#[derive(Debug, Deserialize, Serialize)]
pub struct SectionSponsor {
    /// The word "Sponsor".
    pub sponsor_text: Rc<str>,
    /// Company/brand being sponosored.
    pub name: Rc<str>,
    /// Primary text.
    pub text: Rc<str>,
    /// Call-to-action
    pub motions: Vec<Motion>,
}