Trait anagolay_support::ArtifactType
source · [−]Expand description
Trait used as type parameter in [AnagolayPackageStructure
], allowing different structures to
define the enumeration of possible artifact types depending on the specific case:
Examples
use codec::{Decode, Encode};
use anagolay_support::{AnagolayArtifactStructure, ArtifactType};
#[derive(Encode, Decode, Clone, PartialEq, Eq)]
enum OperationArtifactType {
Wasm, Docs, Git
}
impl ArtifactType for OperationArtifactType {}
type OperationPackageStructure = AnagolayArtifactStructure<OperationArtifactType>;
#[derive(Encode, Decode, Clone, PartialEq, Eq)]
enum ImageArtifactType {
Raw
}
impl ArtifactType for ImageArtifactType {}
type ImagePackageStructure = AnagolayArtifactStructure<ImageArtifactType>;