mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
ci: add tests (#1141)
This commit is contained in:
1 parent
ad99de22bc
commit
545814abc1
152 files changed
+287
-532
No files matched your search
@@ -178,7 +178,7 @@ pub struct InstanceMediaResponse {
|
||||
pub attachment_decay: InstanceAttachmentDecayResponse,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||
pub struct InstanceAttachmentDecayResponse {
|
||||
pub enabled: Option<bool>,
|
||||
pub min_size_mb: Option<f64>,
|
||||
@@ -193,23 +193,6 @@ pub struct InstanceAttachmentDecayResponse {
|
||||
pub effective: InstanceAttachmentDecayEffectiveResponse,
|
||||
}
|
||||
|
||||
impl Default for InstanceAttachmentDecayResponse {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
enabled: None,
|
||||
min_size_mb: None,
|
||||
max_size_mb: None,
|
||||
max_eligible_size_mb: None,
|
||||
min_lifetime_days: None,
|
||||
max_lifetime_days: None,
|
||||
curve: None,
|
||||
renew_threshold_days: None,
|
||||
renew_window_days: None,
|
||||
effective: InstanceAttachmentDecayEffectiveResponse::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct InstanceAttachmentDecayEffectiveResponse {
|
||||
#[serde(default)]
|
||||
@@ -297,7 +280,7 @@ impl PremiumMode {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||
pub struct AppPublicConfigResponse {
|
||||
#[serde(default)]
|
||||
pub branding: AppBrandingConfigResponse,
|
||||
@@ -309,17 +292,6 @@ pub struct AppPublicConfigResponse {
|
||||
pub registration: AppRegistrationConfigResponse,
|
||||
}
|
||||
|
||||
impl Default for AppPublicConfigResponse {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
branding: AppBrandingConfigResponse::default(),
|
||||
setup: AppSetupConfigResponse::default(),
|
||||
legal: AppLegalConfigResponse::default(),
|
||||
registration: AppRegistrationConfigResponse::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct AppBrandingConfigResponse {
|
||||
#[serde(default = "default_product_name")]
|
||||
|
||||
Reference in new issue
Block a user