use super::*;
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
pub struct UserPublisherLayer {
pub common: CommonPublisherLayer,
}
#[derive(Debug, Default, Clone, PartialEq, Eq)]
pub struct UserPublisherConfig {
pub common: CommonPublisherConfig,
}
impl UserPublisherConfig {
pub fn defaults_for_package(
_workspaces: &WorkspaceGraph,
_pkg_idx: PackageIdx,
common: &CommonPublisherConfig,
) -> Self {
Self {
common: common.clone(),
}
}
}
impl ApplyLayer for UserPublisherConfig {
type Layer = UserPublisherLayer;
fn apply_layer(&mut self, Self::Layer { common }: Self::Layer) {
self.common.apply_layer(common);
}
}
impl ApplyLayer for UserPublisherLayer {
type Layer = UserPublisherLayer;
fn apply_layer(&mut self, Self::Layer { common }: Self::Layer) {
self.common.apply_layer(common);
}
}
impl std::ops::Deref for UserPublisherConfig {
type Target = CommonPublisherConfig;
fn deref(&self) -> &Self::Target {
&self.common
}
}