Adding skip_serializing_none to federation state. (#4152)

This commit is contained in:
Dessalines 2023-11-14 08:20:44 -05:00 committed by GitHub
parent 907e0ce726
commit 28c30cc502
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -328,6 +328,7 @@ pub struct FederatedInstances {
pub blocked: Vec<InstanceWithFederationState>,
}
#[skip_serializing_none]
#[derive(Debug, Serialize, Deserialize, Clone)]
#[cfg_attr(feature = "full", derive(TS))]
#[cfg_attr(feature = "full", ts(export))]
@ -350,6 +351,7 @@ impl From<FederationQueueState> for ReadableFederationState {
}
}
#[skip_serializing_none]
#[derive(Debug, Serialize, Deserialize, Clone)]
#[cfg_attr(feature = "full", derive(TS))]
#[cfg_attr(feature = "full", ts(export))]

View file

@ -3,9 +3,11 @@ use chrono::{DateTime, Utc};
#[cfg(feature = "full")]
use diesel::prelude::*;
use serde::{Deserialize, Serialize};
use serde_with::skip_serializing_none;
#[cfg(feature = "full")]
use ts_rs::TS;
#[skip_serializing_none]
#[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(
feature = "full",