pub struct ImageName {
pub host: Option<String>,
pub port: Option<u16>,
pub path: String,
pub version: Option<ImageVersion>,
}
Expand description
Represents a Docker image name
Fields§
§host: Option<String>
The host of the image registry
port: Option<u16>
The port of the image registry
path: String
The path of the image repository
version: Option<ImageVersion>
The version of the image
Implementations§
Trait Implementations§
Source§impl From<ImageName> for FromContext
impl From<ImageName> for FromContext
Source§impl From<ImageNamePatch> for ImageName
impl From<ImageNamePatch> for ImageName
Source§fn from(value: ImageNamePatch) -> Self
fn from(value: ImageNamePatch) -> Self
Converts to this type from the input type.
Source§impl From<ParsableStruct<ImageNamePatch>> for ImageName
impl From<ParsableStruct<ImageNamePatch>> for ImageName
Source§fn from(value: ParsableStruct<ImageNamePatch>) -> Self
fn from(value: ParsableStruct<ImageNamePatch>) -> Self
Converts to this type from the input type.
Source§impl Ord for ImageName
impl Ord for ImageName
Source§impl PartialOrd for ImageName
impl PartialOrd for ImageName
Source§impl Patch<ImageNamePatch> for ImageName
impl Patch<ImageNamePatch> for ImageName
Source§fn apply(&mut self, patch: ImageNamePatch)
fn apply(&mut self, patch: ImageNamePatch)
Apply a patch
Source§fn into_patch(self) -> ImageNamePatch
fn into_patch(self) -> ImageNamePatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> ImageNamePatch
fn into_patch_by_diff(self, previous_struct: Self) -> ImageNamePatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ImageNamePatch
fn new_empty_patch() -> ImageNamePatch
Get an empty patch instance
Source§impl Patch<ParsableStruct<ImageNamePatch>> for ImageName
impl Patch<ParsableStruct<ImageNamePatch>> for ImageName
Source§fn apply(&mut self, patch: ParsableStruct<ImageNamePatch>)
fn apply(&mut self, patch: ParsableStruct<ImageNamePatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<ImageNamePatch>
fn into_patch(self) -> ParsableStruct<ImageNamePatch>
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(
self,
previous_struct: Self,
) -> ParsableStruct<ImageNamePatch>
fn into_patch_by_diff( self, previous_struct: Self, ) -> ParsableStruct<ImageNamePatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<ImageNamePatch>
fn new_empty_patch() -> ParsableStruct<ImageNamePatch>
Get an empty patch instance
impl Eq for ImageName
impl StructuralPartialEq for ImageName
Auto Trait Implementations§
impl Freeze for ImageName
impl RefUnwindSafe for ImageName
impl Send for ImageName
impl Sync for ImageName
impl Unpin for ImageName
impl UnwindSafe for ImageName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.