Skip to main content

Module settings

Module settings 

Source
Expand description

Settings model for Ghost API.

The Ghost Content API exposes a read-only subset of site settings via the /ghost/api/content/settings/ endpoint.

§Example

use ghost_io_api::models::settings::Settings;

let settings = Settings {
    title: Some("My Blog".to_string()),
    description: Some("A blog about things".to_string()),
    ..Default::default()
};

assert_eq!(settings.title.as_deref(), Some("My Blog"));

Structs§

NavItem
A navigation item in the site menu.
Settings
Site-wide settings returned by the Ghost Content API.