podman-client 0.0.2

A native Rust client for the Podman REST API over Unix sockets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::HashMap;

use serde::Serialize;

pub struct NetworkConnectOptions<'a> {
    pub name: &'a str,
    pub request: NetworkConnectRequest<'a>,
}

#[derive(Serialize)]
pub struct NetworkConnectRequest<'a> {
    pub aliases: Vec<&'a str>,
    pub container: &'a str,
    pub interface_name: &'a str,
    pub options: HashMap<String, String>,
    pub static_ips: Vec<&'a str>,
    pub static_mac: &'a str,
}