pub struct ArtifactId(pub String);Expand description
Opaque unique identifier for an Artifact.
Wraps a String for compile-time type safety.
Tuple Fields§
§0: StringImplementations§
Source§impl ArtifactId
impl ArtifactId
Sourcepub fn new(s: impl Into<String>) -> Self
pub fn new(s: impl Into<String>) -> Self
Creates a new ArtifactId from any string-like value.
Trait Implementations§
Source§impl AsRef<str> for ArtifactId
impl AsRef<str> for ArtifactId
Source§impl Clone for ArtifactId
impl Clone for ArtifactId
Source§fn clone(&self) -> ArtifactId
fn clone(&self) -> ArtifactId
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 moreSource§impl Debug for ArtifactId
impl Debug for ArtifactId
Source§impl<'de> Deserialize<'de> for ArtifactId
impl<'de> Deserialize<'de> for ArtifactId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ArtifactId
impl Display for ArtifactId
Source§impl From<&str> for ArtifactId
impl From<&str> for ArtifactId
Source§impl From<String> for ArtifactId
impl From<String> for ArtifactId
Source§impl Hash for ArtifactId
impl Hash for ArtifactId
Source§impl PartialEq for ArtifactId
impl PartialEq for ArtifactId
Source§impl Serialize for ArtifactId
impl Serialize for ArtifactId
impl Eq for ArtifactId
impl StructuralPartialEq for ArtifactId
Auto Trait Implementations§
impl Freeze for ArtifactId
impl RefUnwindSafe for ArtifactId
impl Send for ArtifactId
impl Sync for ArtifactId
impl Unpin for ArtifactId
impl UnsafeUnpin for ArtifactId
impl UnwindSafe for ArtifactId
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