[−][src]Struct dockers::images::Image
Fields
Id: String
ParentId: String
RepoTags: Option<Vec<String>>
RepoDigests: Option<Vec<String>>
Created: u64
Size: u64
VirtualSize: u64
Labels: Option<HashMap<String, String>>
Containers: i32
Methods
impl Image
[src]
Container is the main structure for handling containers You can create an empty container or you can pass the ID of an existing one or the Image to create a new one.
Example
extern crate dockers; use dockers::Image; let image = Image::pull("rust".to_owned(), None) .expect("Image not pulled"); image.remove().expect("Couldn't remove the image");
pub fn create(
source: Source,
value: String,
tag: Option<String>
) -> Result<Image, DockerApiError>
[src]
source: Source,
value: String,
tag: Option<String>
) -> Result<Image, DockerApiError>
pub fn pull(image: String, tag: Option<String>) -> Result<Image, DockerApiError>
[src]
pub fn list() -> Result<Vec<Image>, DockerApiError>
[src]
pub fn remove(self) -> Result<Vec<DeletedImage>, DockerApiError>
[src]
Trait Implementations
impl Client for Image
[src]
fn get_response_from_api(
&self,
api_endpoint: &str,
method: Method,
query_params: Option<&str>,
body: Option<&str>
) -> Result<Response, DockerApiError>
[src]
&self,
api_endpoint: &str,
method: Method,
query_params: Option<&str>,
body: Option<&str>
) -> Result<Response, DockerApiError>
impl Default for Image
[src]
impl Debug for Image
[src]
impl Serialize for Image
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Image
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Image
impl Unpin for Image
impl Sync for Image
impl RefUnwindSafe for Image
impl UnwindSafe for Image
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,