- let replies = CommentReplyQuery::builder()
- .conn(conn)
- .recipient_id(Some(person_id))
- .my_person_id(Some(person_id))
- .show_bot_accounts(Some(show_bot_accounts))
- .sort(Some(sort))
- .limit(Some(RSS_FETCH_LIMIT))
- .build()
- .list()?;
-
- let mentions = PersonMentionQuery::builder()
- .conn(conn)
- .recipient_id(Some(person_id))
- .my_person_id(Some(person_id))
- .show_bot_accounts(Some(show_bot_accounts))
- .sort(Some(sort))
- .limit(Some(RSS_FETCH_LIMIT))
- .build()
- .list()?;
+ let replies = CommentReplyQuery {
+ recipient_id: (Some(person_id)),
+ my_person_id: (Some(person_id)),
+ show_bot_accounts: (show_bot_accounts),
+ sort: (Some(sort)),
+ limit: (Some(RSS_FETCH_LIMIT)),
+ ..Default::default()
+ }
+ .list(pool)
+ .await?;
+
+ let mentions = PersonMentionQuery {
+ recipient_id: (Some(person_id)),
+ my_person_id: (Some(person_id)),
+ show_bot_accounts: (show_bot_accounts),
+ sort: (Some(sort)),
+ limit: (Some(RSS_FETCH_LIMIT)),
+ ..Default::default()
+ }
+ .list(pool)
+ .await?;