/// defines how the link should be automatically updated as new API version are added
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum ApiLinkPolicyEnum {
    #[default]
    #[serde(rename = "latest")]
    Latest,
    #[serde(rename = "pinned")]
    Pinned,
}
impl std::fmt::Display for ApiLinkPolicyEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            ApiLinkPolicyEnum::Latest => "latest",
            ApiLinkPolicyEnum::Pinned => "pinned",
        };
        write!(f, "{}", str_val)
    }
}
