Skip to main content

Module tag

Module tag 

Source
Expand description

Tag model for Ghost API.

Tags are used to categorise posts and pages. Each tag has a name, slug, and optional metadata fields.

§Example

use ghost_io_api::models::tag::Tag;

let tag = Tag {
    id: "5e6f7a8b9c0d1e2f3a4b5c6e".to_string(),
    name: "Getting Started".to_string(),
    slug: "getting-started".to_string(),
    ..Default::default()
};

assert_eq!(tag.name, "Getting Started");
assert!(tag.is_public());

Structs§

PostCount
Count of posts associated with a tag or author.
Tag
A Ghost tag resource.