wp-mini 0.2.0-alpha.3

Minimal async API Wrapper for WP | Only Reader/Public API | Extremely minimal.
Documentation
use crate::field::DefaultableFields;
use strum_macros::{Display, EnumIter};

/// Represents the fields for a `PartReference` object.
///
/// A `PartReference` is typically a lightweight link to a story part,
/// often found within a list of parts in a story object.
#[derive(Debug, Clone, Copy, Display, EnumIter, PartialEq, Eq, Ord, PartialOrd, Hash)]
#[strum(serialize_all = "camelCase")]
pub enum PartReferenceField {
    /// The unique numerical identifier of the story part.
    Id,
    /// The timestamp when the part was created.
    CreateDate,
}

impl DefaultableFields for PartReferenceField {
    fn default_fields() -> Vec<Self> {
        vec![Self::Id]
    }
}