wp-mini 0.2.0-alpha.3

Minimal async API Wrapper for WP | Only Reader/Public API | Extremely minimal.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::Deserialize;

/// Represents the content of a story part, typically returned in a structured JSON format.
#[derive(Debug, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct PartContent {
    /// The full text content of the story part.
    pub text: Option<String>,
    /// A hash of the text content, likely used for caching or integrity checks.
    #[serde(rename = "text_hash")]
    pub text_hash: Option<String>,
}