Struct DockerTag
pub struct DockerTag(/* private fields */);Expand description
A validated Docker tag.
Implementations§
§impl DockerTag
impl DockerTag
pub fn new(value: impl AsRef<str>) -> Result<DockerTag, DockerTagError>
pub fn new(value: impl AsRef<str>) -> Result<DockerTag, DockerTagError>
Creates a validated Docker tag.
pub fn is_semver_like(&self) -> bool
pub fn is_semver_like(&self) -> bool
Returns true for common semantic-version-shaped tags.
pub 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§
§impl Ord for DockerTag
impl Ord for DockerTag
§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