ambientcg 0.2.2

Rust interface around the ambientCG v2 web API
Documentation
#![allow(dead_code)]

use std::fmt;

/// Used to request extra fields from the ambientCG API when performing a
/// request.
/// 
/// When converted to a string for display, these enums will use the camelCase
/// style consistent with ambientCG's 'include' query parameter.
#[derive(Debug, Hash, PartialEq, Eq)]
pub enum Include {
    StatisticsData,
    TagData,
    DisplayData,
    DimensionsData,
    RelationshipData,
    NeighbourData,
    VariationsData,
    DownloadData,
    PreviewData,
    MapData,
    UsdData,
    ImageData
}
impl fmt::Display for Include {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        let repr = match self {
            Self::StatisticsData => "statisticsData",
            Self::TagData => "tagData",
            Self::DisplayData => "displayData",
            Self::DimensionsData => "dimensionsData",
            Self::RelationshipData => "relationshipData",
            Self::NeighbourData => "neighbourData",
            Self::VariationsData => "variationsData",
            Self::DownloadData => "downloadData",
            Self::PreviewData => "previewData",
            Self::MapData => "mapData",
            Self::UsdData => "usdData",
            Self::ImageData => "imageData"
        };
        write!(f, "{}", repr)
    }
}