docktape 0.2.0

Wrapping the Docker API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Struct representing a Docker network with some of its fields
pub struct Network{
    pub id: String,
    pub name: String
}

impl Network{
    /// Returns the network ID
    pub fn id(&self) -> String{
        self.id.clone().replace("\"", "")
    }

    /// Returns the network name
    pub fn name(&self) -> String{
        self.name.clone().replace("\"", "")
    }
}