forked from github-starred/komodo
client
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user