use crate::tina::{client::registry::RegistryClientConfigInfo, data::AppResult, server::application::AppConfig};
use super::UpdateableConfig;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[serde(crate = "serde")]
pub struct RegistryConfig {
pub address: Vec<String>,
pub app_name: String,
pub group_name: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub namespace: Option<String>,
pub healthy: Option<bool>,
pub config: Option<Vec<RegistryClientConfigInfo>>,
}
#[async_trait]
impl UpdateableConfig for RegistryConfig {
async fn apply(&self, _application: &AppConfig) -> AppResult<()> {
Ok(())
}
}