]> Untitled Git - lemmy.git/commit
Use typed-builder crate for queries (#2379)
authorNutomic <me@nutomic.com>
Thu, 4 Aug 2022 19:30:17 +0000 (21:30 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Aug 2022 19:30:17 +0000 (15:30 -0400)
commit8a4d9cc1ba81062b08dfca2e4b2594d1b053eca3
tree529dd219104230341abe94c34583fbb9a5a86d64
parent7094a0c0a416cd701378c17e406c84a1403342a1
Use typed-builder crate for queries (#2379)

* Use typed-builder crate for PrivateMessageQuery

* derive builder for all queries

* remove unnecessary clones

* fix tests
47 files changed:
.drone.yml
Cargo.lock
crates/api/src/comment_report/list.rs
crates/api/src/local_user/notifications/list_mentions.rs
crates/api/src/local_user/notifications/list_replies.rs
crates/api/src/post_report/list.rs
crates/api/src/site/registration_applications/list.rs
crates/api/src/site/search.rs
crates/api_common/src/utils.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/private_message/read.rs
crates/api_crud/src/user/read.rs
crates/db_schema/src/traits.rs
crates/db_views/Cargo.toml
crates/db_views/src/comment_report_view.rs
crates/db_views/src/comment_view.rs
crates/db_views/src/post_report_view.rs
crates/db_views/src/post_view.rs
crates/db_views/src/private_message_view.rs
crates/db_views/src/registration_application_view.rs
crates/db_views_actor/Cargo.toml
crates/db_views_actor/src/comment_reply_view.rs
crates/db_views_actor/src/community_block_view.rs
crates/db_views_actor/src/community_follower_view.rs
crates/db_views_actor/src/community_moderator_view.rs
crates/db_views_actor/src/community_view.rs
crates/db_views_actor/src/person_block_view.rs
crates/db_views_actor/src/person_mention_view.rs
crates/db_views_actor/src/person_view.rs
crates/db_views_moderator/src/admin_purge_comment_view.rs
crates/db_views_moderator/src/admin_purge_community_view.rs
crates/db_views_moderator/src/admin_purge_person_view.rs
crates/db_views_moderator/src/admin_purge_post_view.rs
crates/db_views_moderator/src/mod_add_community_view.rs
crates/db_views_moderator/src/mod_add_view.rs
crates/db_views_moderator/src/mod_ban_from_community_view.rs
crates/db_views_moderator/src/mod_ban_view.rs
crates/db_views_moderator/src/mod_hide_community_view.rs
crates/db_views_moderator/src/mod_lock_post_view.rs
crates/db_views_moderator/src/mod_remove_comment_view.rs
crates/db_views_moderator/src/mod_remove_community_view.rs
crates/db_views_moderator/src/mod_remove_post_view.rs
crates/db_views_moderator/src/mod_sticky_post_view.rs
crates/db_views_moderator/src/mod_transfer_community_view.rs
crates/routes/src/feeds.rs