mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
make category enum lowercase
This commit is contained in:
parent
d683edafb8
commit
44108cb2d3
|
|
@ -36,6 +36,7 @@ fn sort_alphabetically<T: Serialize, S: serde::Serializer>(
|
|||
pub struct SortAlphabetically<T: Serialize>(#[serde(serialize_with = "sort_alphabetically")] pub T);
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum CategoryType {
|
||||
Microblog,
|
||||
Forum,
|
||||
|
|
|
|||
Loading…
Reference in a new issue