]> Untitled Git - lemmy.git/commit
Derive default for api request structs, move type enums (#2245)
authorNutomic <me@nutomic.com>
Fri, 6 May 2022 20:55:07 +0000 (20:55 +0000)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 20:55:07 +0000 (20:55 +0000)
commit3053e14be7a47675b621e1c80aa88f4f0a5ce1ae
tree3df4cd3aaca207c8d3e11f779ece0537b0c8c31e
parent3aa3d75a1e04b6ed4bc7566f86f45e6883c5c39b
Derive default for api request structs, move type enums (#2245)

* Derive default for api request structs, move type enums

* Simplify api by using enum types directly, instead of string

* Add default and clone for most api structs
26 files changed:
crates/api/src/local_user/notifications/list_mentions.rs
crates/api/src/local_user/notifications/list_replies.rs
crates/api/src/site/search.rs
crates/api_common/src/comment.rs
crates/api_common/src/community.rs
crates/api_common/src/lib.rs
crates/api_common/src/person.rs
crates/api_common/src/post.rs
crates/api_common/src/sensitive.rs
crates/api_common/src/site.rs
crates/api_common/src/websocket.rs
crates/api_crud/src/comment/list.rs
crates/api_crud/src/community/list.rs
crates/api_crud/src/post/list.rs
crates/api_crud/src/site/update.rs
crates/api_crud/src/user/read.rs
crates/db_schema/Cargo.toml
crates/db_schema/src/lib.rs
crates/db_schema/src/newtypes.rs
crates/db_schema/src/utils.rs
crates/db_views/src/comment_view.rs
crates/db_views/src/post_view.rs
crates/db_views_actor/src/community_view.rs
crates/db_views_actor/src/person_mention_view.rs
crates/db_views_actor/src/person_view.rs
crates/routes/src/feeds.rs