docktape 0.3.7

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 Volume with some of its fields
pub struct Volume{
    pub name: String,
    pub mountpoint: String
}

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

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