pub struct DockerRepositoryPath(/* private fields */);Expand description
A validated Docker repository path.
Implementations§
Source§impl DockerRepositoryPath
impl DockerRepositoryPath
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<DockerRepositoryPath, DockerRegistryError>
pub fn new( value: impl AsRef<str>, ) -> Result<DockerRepositoryPath, DockerRegistryError>
Creates a repository path.
Sourcepub fn repository(&self) -> &str
pub fn repository(&self) -> &str
Returns the repository name after the final slash.
Trait Implementations§
Source§impl AsRef<str> for DockerRepositoryPath
impl AsRef<str> for DockerRepositoryPath
Source§impl Clone for DockerRepositoryPath
impl Clone for DockerRepositoryPath
Source§fn clone(&self) -> DockerRepositoryPath
fn clone(&self) -> DockerRepositoryPath
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 DockerRepositoryPath
impl Debug for DockerRepositoryPath
Source§impl Display for DockerRepositoryPath
impl Display for DockerRepositoryPath
Source§impl FromStr for DockerRepositoryPath
impl FromStr for DockerRepositoryPath
Source§type Err = DockerRegistryError
type Err = DockerRegistryError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<DockerRepositoryPath, <DockerRepositoryPath as FromStr>::Err>
fn from_str( value: &str, ) -> Result<DockerRepositoryPath, <DockerRepositoryPath as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DockerRepositoryPath
impl Hash for DockerRepositoryPath
Source§impl Ord for DockerRepositoryPath
impl Ord for DockerRepositoryPath
Source§fn cmp(&self, other: &DockerRepositoryPath) -> Ordering
fn cmp(&self, other: &DockerRepositoryPath) -> 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 DockerRepositoryPath
impl PartialEq for DockerRepositoryPath
Source§fn eq(&self, other: &DockerRepositoryPath) -> bool
fn eq(&self, other: &DockerRepositoryPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DockerRepositoryPath
impl PartialOrd for DockerRepositoryPath
impl Eq for DockerRepositoryPath
impl StructuralPartialEq for DockerRepositoryPath
Auto Trait Implementations§
impl Freeze for DockerRepositoryPath
impl RefUnwindSafe for DockerRepositoryPath
impl Send for DockerRepositoryPath
impl Sync for DockerRepositoryPath
impl Unpin for DockerRepositoryPath
impl UnsafeUnpin for DockerRepositoryPath
impl UnwindSafe for DockerRepositoryPath
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