boosty_api 0.27.0

API client for interacting with Boosty platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::media_content::ContentItem;

/// Common trait for entities with content.
pub trait HasContent {
    fn extract_content(&self) -> Vec<ContentItem>;
}

/// Common trait for entities with title.
pub trait HasTitle {
    fn safe_title(&self) -> String;
}

/// Common trait for entities with availability.
pub trait IsAvailable {
    fn not_available(&self) -> bool;
}