rancher 0.1.6

A fledgling rancher client. Just to flip drainOnDelete for my node pools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::types::RancherLinks;
use std::collections::HashMap;

#[derive(Debug, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Collection<T> {
    #[serde(rename = "type")]
    pub _type: String,
    pub links: RancherLinks,
    pub create_types: HashMap<String, String>,
    pub actions: Option<HashMap<String, String>>,
    pub pagination: HashMap<String, i32>,
    // sort:
    pub filters: HashMap<String, Option<String>>,
    pub resource_type: String,
    pub data: Vec<T>,
}