pub struct DockerTag(/* private fields */);Expand description
A validated Docker tag.
Implementations§
Source§impl DockerTag
impl DockerTag
Sourcepub fn new(value: impl AsRef<str>) -> Result<DockerTag, DockerTagError>
pub fn new(value: impl AsRef<str>) -> Result<DockerTag, DockerTagError>
Creates a validated Docker tag.
Sourcepub fn is_semver_like(&self) -> bool
pub fn is_semver_like(&self) -> bool
Returns true for common semantic-version-shaped tags.
Sourcepub fn has_platform_suffix(&self) -> bool
pub fn has_platform_suffix(&self) -> bool
Returns true when the tag ends with a common platform or distro suffix.
Trait Implementations§
Source§impl Ord for DockerTag
impl Ord for DockerTag
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 PartialOrd for DockerTag
impl PartialOrd for DockerTag
impl Eq for DockerTag
impl StructuralPartialEq for DockerTag
Auto Trait Implementations§
impl Freeze for DockerTag
impl RefUnwindSafe for DockerTag
impl Send for DockerTag
impl Sync for DockerTag
impl Unpin for DockerTag
impl UnsafeUnpin for DockerTag
impl UnwindSafe for DockerTag
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