pub struct RegistryImagePath { /* private fields */ }Expand description
A registry-qualified or local repository path.
Implementations§
Source§impl RegistryImagePath
impl RegistryImagePath
Sourcepub fn new(
registry: Option<DockerRegistry>,
repository: DockerRepositoryPath,
) -> RegistryImagePath
pub fn new( registry: Option<DockerRegistry>, repository: DockerRepositoryPath, ) -> RegistryImagePath
Creates a registry image path from validated parts.
Sourcepub fn registry(&self) -> Option<&DockerRegistry>
pub fn registry(&self) -> Option<&DockerRegistry>
Returns the optional registry host.
Sourcepub fn repository_path(&self) -> &DockerRepositoryPath
pub fn repository_path(&self) -> &DockerRepositoryPath
Returns the repository path.
Trait Implementations§
Source§impl Clone for RegistryImagePath
impl Clone for RegistryImagePath
Source§fn clone(&self) -> RegistryImagePath
fn clone(&self) -> RegistryImagePath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistryImagePath
impl Debug for RegistryImagePath
Source§impl Display for RegistryImagePath
impl Display for RegistryImagePath
Source§impl Hash for RegistryImagePath
impl Hash for RegistryImagePath
Source§impl Ord for RegistryImagePath
impl Ord for RegistryImagePath
Source§fn cmp(&self, other: &RegistryImagePath) -> Ordering
fn cmp(&self, other: &RegistryImagePath) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for RegistryImagePath
impl PartialEq for RegistryImagePath
Source§fn eq(&self, other: &RegistryImagePath) -> bool
fn eq(&self, other: &RegistryImagePath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RegistryImagePath
impl PartialOrd for RegistryImagePath
impl Eq for RegistryImagePath
impl StructuralPartialEq for RegistryImagePath
Auto Trait Implementations§
impl Freeze for RegistryImagePath
impl RefUnwindSafe for RegistryImagePath
impl Send for RegistryImagePath
impl Sync for RegistryImagePath
impl Unpin for RegistryImagePath
impl UnsafeUnpin for RegistryImagePath
impl UnwindSafe for RegistryImagePath
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