Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -7,6 +7,13 @@ pub struct CommitArtifact {
|
||||
pub upload_id: UploadArtifactID,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Release {
|
||||
pub app: String,
|
||||
pub branch: String,
|
||||
pub cluster: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct ArtifactID(uuid::Uuid);
|
||||
|
||||
@@ -52,6 +59,12 @@ impl From<uuid::Uuid> for UploadArtifactID {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ArtifactID> for uuid::Uuid {
|
||||
fn from(value: ArtifactID) -> Self {
|
||||
value.0
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<String> for UploadArtifactID {
|
||||
type Error = anyhow::Error;
|
||||
|
||||
|
Reference in New Issue
Block a user