Struct DockerImageReference
pub struct DockerImageReference { /* private fields */ }Expand description
A conservatively parsed Docker image reference.
Implementations§
§impl DockerImageReference
impl DockerImageReference
pub fn parse(
value: impl AsRef<str>,
) -> Result<DockerImageReference, DockerImageReferenceError>
pub fn parse( value: impl AsRef<str>, ) -> Result<DockerImageReference, DockerImageReferenceError>
Parses a Docker image reference.
pub fn namespace(&self) -> Option<&str>
pub fn namespace(&self) -> Option<&str>
Returns the slash-separated namespace before the repository name.
pub fn repository(&self) -> &str
pub fn repository(&self) -> &str
Returns the repository name.
Trait Implementations§
§impl AsRef<str> for DockerImageReference
impl AsRef<str> for DockerImageReference
§impl Clone for DockerImageReference
impl Clone for DockerImageReference
§fn clone(&self) -> DockerImageReference
fn clone(&self) -> DockerImageReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DockerImageReference
impl Debug for DockerImageReference
§impl Display for DockerImageReference
impl Display for DockerImageReference
§impl FromStr for DockerImageReference
impl FromStr for DockerImageReference
§impl Hash for DockerImageReference
impl Hash for DockerImageReference
§impl Ord for DockerImageReference
impl Ord for DockerImageReference
§fn cmp(&self, other: &DockerImageReference) -> Ordering
fn cmp(&self, other: &DockerImageReference) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for DockerImageReference
impl PartialEq for DockerImageReference
§impl PartialOrd for DockerImageReference
impl PartialOrd for DockerImageReference
§impl TryFrom<&str> for DockerImageReference
impl TryFrom<&str> for DockerImageReference
impl Eq for DockerImageReference
impl StructuralPartialEq for DockerImageReference
Auto Trait Implementations§
impl Freeze for DockerImageReference
impl RefUnwindSafe for DockerImageReference
impl Send for DockerImageReference
impl Sync for DockerImageReference
impl Unpin for DockerImageReference
impl UnsafeUnpin for DockerImageReference
impl UnwindSafe for DockerImageReference
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