feat: with comparing contents
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-02-18 22:37:54 +01:00
parent 02e70fe268
commit a17dd2bd10
5 changed files with 52 additions and 2 deletions

View File

@@ -51,6 +51,16 @@ impl From<uuid::Uuid> for UploadArtifactID {
}
}
impl TryFrom<String> for UploadArtifactID {
type Error = anyhow::Error;
fn try_from(value: String) -> Result<Self, Self::Error> {
let uuid = uuid::Uuid::parse_str(&value)?;
Ok(Self(uuid))
}
}
impl Deref for UploadArtifactID {
type Target = uuid::Uuid;