Struct DockerRepositoryPath
pub struct DockerRepositoryPath(/* private fields */);Expand description
A validated Docker repository path.
Implementations§
§impl DockerRepositoryPath
impl DockerRepositoryPath
pub fn new(
value: impl AsRef<str>,
) -> Result<DockerRepositoryPath, DockerRegistryError>
pub fn new( value: impl AsRef<str>, ) -> Result<DockerRepositoryPath, DockerRegistryError>
Creates a repository path.
pub fn repository(&self) -> &str
pub fn repository(&self) -> &str
Returns the repository name after the final slash.
Trait Implementations§
§impl AsRef<str> for DockerRepositoryPath
impl AsRef<str> for DockerRepositoryPath
§impl Clone for DockerRepositoryPath
impl Clone for DockerRepositoryPath
§fn clone(&self) -> DockerRepositoryPath
fn clone(&self) -> DockerRepositoryPath
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 DockerRepositoryPath
impl Debug for DockerRepositoryPath
§impl Display for DockerRepositoryPath
impl Display for DockerRepositoryPath
§impl FromStr for DockerRepositoryPath
impl FromStr for DockerRepositoryPath
§impl Hash for DockerRepositoryPath
impl Hash for DockerRepositoryPath
§impl Ord for DockerRepositoryPath
impl Ord for DockerRepositoryPath
§fn cmp(&self, other: &DockerRepositoryPath) -> Ordering
fn cmp(&self, other: &DockerRepositoryPath) -> 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 DockerRepositoryPath
impl PartialEq for DockerRepositoryPath
§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