Skip to main content

ArtifactType

Trait ArtifactType 

pub trait ArtifactType:
    Serialize
    + DeserializeOwned
    + Ord
    + Clone {
    // Required method
    fn name(&self, flavor: Option<&str>, suffix: Option<&str>) -> String;
}
Expand description

A trait representing a type of an Artifact

Required Methods§

fn name(&self, flavor: Option<&str>, suffix: Option<&str>) -> String

Get the artifact name

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§