wasmer_deploy_schema/schema/
package.rs1use super::EntityDescriptorConst;
2
3#[derive(
4 schemars::JsonSchema, serde::Serialize, serde::Deserialize, PartialEq, Eq, Clone, Debug,
5)]
6pub struct WebcPackageVersionV1Alpha1Spec {
7 pub namespace: String,
8 pub name: String,
9 pub version: String,
10
11 pub webc_hash_sha256: String,
12
13 pub backend_package_id: Option<String>,
14 pub backend_id: Option<String>,
15 pub webc_manifest: Option<serde_json::Value>,
16 pub download_url: Option<url::Url>,
17
18 #[serde(default)]
20 pub is_private: bool,
21}
22
23impl EntityDescriptorConst for WebcPackageVersionV1Alpha1Spec {
24 const NAMESPACE: &'static str = "wasmer.io";
25 const NAME: &'static str = "PackageVersion";
26 const VERSION: &'static str = "1alpha1";
27 const KIND: &'static str = "wasmer.io/PackageVersion.v1alpha1";
28
29 type Spec = Self;
30 type State = ();
31}
32
33pub type WebcPackageVersion = super::Entity<WebcPackageVersionV1Alpha1Spec>;