Struct docker_compose::v2::Image
[−]
[src]
pub struct Image { pub registry_host: Option<RegistryHost>, pub user_name: Option<String>, pub name: String, pub tag: Option<String>, }
The name of an external resource, and an optional local alias to which
it is mapped inside a container. Our fields names are based on the
docker
documentation.
Fields
registry_host: Option<RegistryHost>
The server running our Docker registry.
user_name: Option<String>
The name of the user account on the Docker registry.
name: String
The name of this image.
tag: Option<String>
A tag identifying a specific version in our image registry.
Methods
impl Image
[src]
fn new<S: AsRef<str>>(s: S) -> Result<Image, Error>
Build an image from an image string.
fn without_tag(&self) -> Image
Return the Image
with the tag removed.
Trait Implementations
impl Ord for Image
[src]
fn cmp(&self, __arg_0: &Image) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for Image
[src]
fn partial_cmp(&self, __arg_0: &Image) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Image) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Image) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Image) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Image) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for Image
[src]
impl PartialEq for Image
[src]
fn eq(&self, __arg_0: &Image) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Image) -> bool
This method tests for !=
.
impl Clone for Image
[src]
fn clone(&self) -> Image
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more