This commit is contained in:
mbecker20
2023-08-06 23:17:15 -04:00
parent 6884453b0f
commit 0b6d955672
6 changed files with 140 additions and 137 deletions

View File

@@ -9,7 +9,7 @@ use typeshare::typeshare;
use super::resource::Resource;
#[typeshare]
pub type Builder = Resource<BuilderConfig>;
pub type Builder = Resource<BuilderConfig, ()>;
#[typeshare(serialized_as = "Partial<BuilderConfig>")]
pub type _PartialBuilderConfig = PartialBuilderConfig;

View File

@@ -9,7 +9,7 @@ use typeshare::typeshare;
use super::{resource::Resource, EnvironmentVar, Version};
#[typeshare]
pub type Deployment = Resource<DeploymentConfig>;
pub type Deployment = Resource<DeploymentConfig, ()>;
#[typeshare]
#[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial, MungosIndexed)]

View File

@@ -9,7 +9,7 @@ use super::PermissionsMap;
#[typeshare]
#[derive(Serialize, Deserialize, Debug, Clone, Builder)]
pub struct Resource<Config, Info: Default = ()> {
pub struct Resource<Config, Info: Default> {
#[serde(
default,
rename = "_id",

View File

@@ -11,7 +11,7 @@ pub mod docker_network;
pub mod stats;
#[typeshare]
pub type Server = Resource<ServerConfig>;
pub type Server = Resource<ServerConfig, ()>;
#[typeshare]
#[derive(Serialize, Deserialize, Debug, Clone, Builder, Partial, MungosIndexed)]