Skip to main content

Module page

Module page 

Source
Expand description

Page model for Ghost API.

A Ghost page is a static content item (About, Contact, etc.) as opposed to a chronological post. The schema mirrors super::post::Post closely.

§Example

use ghost_io_api::models::page::{Page, PageStatus};

let page = Page {
    id: "5e6f7a8b9c0d1e2f3a4b5c6d".to_string(),
    title: "About".to_string(),
    slug: "about".to_string(),
    status: PageStatus::Published,
    ..Default::default()
};

assert!(page.is_published());

Structs§

Page
A Ghost page resource.

Enums§

PageStatus
Publication status of a Ghost page.