ik-mini 0.2.0-alpha.5

Minimal async API Wrapper for IK | Only Reader/Public API | Extremely minimal.
Documentation
use serde::Deserialize;

/// Represents a full story part object from the Inkitt API.
#[derive(Debug, Deserialize, Clone)]
#[serde(rename_all = "snake_case")]
pub struct Chapter {
    /// The unique numerical identifier of the story part.
    pub id: u64,
    /// The name of the story part.
    pub name: String,
    /// An object containing URLs for accessing the part's text content.
    pub chapter_number: u64,
    /// Word count of the story chapter
    pub words_count: u64,
    /// free_override.
    pub free_override: bool,
    /// patron_icon_state.
    pub patron_icon_state: String,

    /// Full chapter text.
    pub text: Option<String>,
    /// Special notes by author for the story chapter.
    pub author_notes: Option<String>,
    /// has_access.
    pub has_access: Option<bool>,
    /// has_free_access.
    pub has_free_access: Option<bool>,
    /// has_free_galatea_access.
    pub has_free_galatea_access: Option<bool>,
    /// galatea_url.
    pub galatea_url: Option<String>,
}