sideko_rest_api 0.9.2

Rust API Client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// LinkPolicyEnum
#[derive(serde::Serialize, serde::Deserialize, Debug, Default, Clone)]
pub enum LinkPolicyEnum {
    #[default]
    #[serde(rename = "latest")]
    Latest,
    #[serde(rename = "pinned")]
    Pinned,
}
impl std::fmt::Display for LinkPolicyEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let str_val = match self {
            LinkPolicyEnum::Latest => "latest",
            LinkPolicyEnum::Pinned => "pinned",
        };
        write!(f, "{}", str_val)
    }
}