jacquard_api/tools_ozone/moderation/
query_statuses.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: tools.ozone.moderation.queryStatuses
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[derive(
9    serde::Serialize,
10    serde::Deserialize,
11    Debug,
12    Clone,
13    PartialEq,
14    Eq,
15    jacquard_derive::IntoStatic
16)]
17#[serde(rename_all = "camelCase")]
18pub struct QueryStatuses<'a> {
19    #[serde(skip_serializing_if = "std::option::Option::is_none")]
20    #[serde(borrow)]
21    pub age_assurance_state: std::option::Option<jacquard_common::CowStr<'a>>,
22    #[serde(skip_serializing_if = "std::option::Option::is_none")]
23    pub appealed: std::option::Option<bool>,
24    #[serde(skip_serializing_if = "std::option::Option::is_none")]
25    #[serde(borrow)]
26    pub collections: std::option::Option<Vec<jacquard_common::types::string::Nsid<'a>>>,
27    #[serde(skip_serializing_if = "std::option::Option::is_none")]
28    #[serde(borrow)]
29    pub comment: std::option::Option<jacquard_common::CowStr<'a>>,
30    #[serde(skip_serializing_if = "std::option::Option::is_none")]
31    #[serde(borrow)]
32    pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
33    #[serde(skip_serializing_if = "std::option::Option::is_none")]
34    #[serde(borrow)]
35    pub exclude_tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
36    #[serde(skip_serializing_if = "std::option::Option::is_none")]
37    pub hosting_deleted_after: std::option::Option<
38        jacquard_common::types::string::Datetime,
39    >,
40    #[serde(skip_serializing_if = "std::option::Option::is_none")]
41    pub hosting_deleted_before: std::option::Option<
42        jacquard_common::types::string::Datetime,
43    >,
44    #[serde(skip_serializing_if = "std::option::Option::is_none")]
45    #[serde(borrow)]
46    pub hosting_statuses: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
47    #[serde(skip_serializing_if = "std::option::Option::is_none")]
48    pub hosting_updated_after: std::option::Option<
49        jacquard_common::types::string::Datetime,
50    >,
51    #[serde(skip_serializing_if = "std::option::Option::is_none")]
52    pub hosting_updated_before: std::option::Option<
53        jacquard_common::types::string::Datetime,
54    >,
55    #[serde(skip_serializing_if = "std::option::Option::is_none")]
56    #[serde(borrow)]
57    pub ignore_subjects: std::option::Option<
58        Vec<jacquard_common::types::string::Uri<'a>>,
59    >,
60    #[serde(skip_serializing_if = "std::option::Option::is_none")]
61    pub include_all_user_records: std::option::Option<bool>,
62    #[serde(skip_serializing_if = "std::option::Option::is_none")]
63    pub include_muted: std::option::Option<bool>,
64    #[serde(skip_serializing_if = "std::option::Option::is_none")]
65    #[serde(borrow)]
66    pub last_reviewed_by: std::option::Option<jacquard_common::types::string::Did<'a>>,
67    ///(default: 50, min: 1, max: 100)
68    #[serde(skip_serializing_if = "std::option::Option::is_none")]
69    pub limit: std::option::Option<i64>,
70    #[serde(skip_serializing_if = "std::option::Option::is_none")]
71    pub min_account_suspend_count: std::option::Option<i64>,
72    ///(min: 0, max: 100)
73    #[serde(skip_serializing_if = "std::option::Option::is_none")]
74    pub min_priority_score: std::option::Option<i64>,
75    #[serde(skip_serializing_if = "std::option::Option::is_none")]
76    pub min_reported_records_count: std::option::Option<i64>,
77    ///(min: 1)
78    #[serde(skip_serializing_if = "std::option::Option::is_none")]
79    pub min_strike_count: std::option::Option<i64>,
80    #[serde(skip_serializing_if = "std::option::Option::is_none")]
81    pub min_takendown_records_count: std::option::Option<i64>,
82    #[serde(skip_serializing_if = "std::option::Option::is_none")]
83    pub only_muted: std::option::Option<bool>,
84    #[serde(skip_serializing_if = "std::option::Option::is_none")]
85    pub queue_count: std::option::Option<i64>,
86    #[serde(skip_serializing_if = "std::option::Option::is_none")]
87    pub queue_index: std::option::Option<i64>,
88    #[serde(skip_serializing_if = "std::option::Option::is_none")]
89    #[serde(borrow)]
90    pub queue_seed: std::option::Option<jacquard_common::CowStr<'a>>,
91    #[serde(skip_serializing_if = "std::option::Option::is_none")]
92    pub reported_after: std::option::Option<jacquard_common::types::string::Datetime>,
93    #[serde(skip_serializing_if = "std::option::Option::is_none")]
94    pub reported_before: std::option::Option<jacquard_common::types::string::Datetime>,
95    #[serde(skip_serializing_if = "std::option::Option::is_none")]
96    #[serde(borrow)]
97    pub review_state: std::option::Option<jacquard_common::CowStr<'a>>,
98    #[serde(skip_serializing_if = "std::option::Option::is_none")]
99    pub reviewed_after: std::option::Option<jacquard_common::types::string::Datetime>,
100    #[serde(skip_serializing_if = "std::option::Option::is_none")]
101    pub reviewed_before: std::option::Option<jacquard_common::types::string::Datetime>,
102    ///(default: "desc")
103    #[serde(skip_serializing_if = "std::option::Option::is_none")]
104    #[serde(borrow)]
105    pub sort_direction: std::option::Option<jacquard_common::CowStr<'a>>,
106    ///(default: "lastReportedAt")
107    #[serde(skip_serializing_if = "std::option::Option::is_none")]
108    #[serde(borrow)]
109    pub sort_field: std::option::Option<jacquard_common::CowStr<'a>>,
110    #[serde(skip_serializing_if = "std::option::Option::is_none")]
111    #[serde(borrow)]
112    pub subject: std::option::Option<jacquard_common::types::string::Uri<'a>>,
113    #[serde(skip_serializing_if = "std::option::Option::is_none")]
114    #[serde(borrow)]
115    pub subject_type: std::option::Option<jacquard_common::CowStr<'a>>,
116    #[serde(skip_serializing_if = "std::option::Option::is_none")]
117    #[serde(borrow)]
118    pub tags: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
119    #[serde(skip_serializing_if = "std::option::Option::is_none")]
120    pub takendown: std::option::Option<bool>,
121}
122
123pub mod query_statuses_state {
124
125    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
126    #[allow(unused)]
127    use ::core::marker::PhantomData;
128    mod sealed {
129        pub trait Sealed {}
130    }
131    /// State trait tracking which required fields have been set
132    pub trait State: sealed::Sealed {}
133    /// Empty state - all required fields are unset
134    pub struct Empty(());
135    impl sealed::Sealed for Empty {}
136    impl State for Empty {}
137    /// Marker types for field names
138    #[allow(non_camel_case_types)]
139    pub mod members {}
140}
141
142/// Builder for constructing an instance of this type
143pub struct QueryStatusesBuilder<'a, S: query_statuses_state::State> {
144    _phantom_state: ::core::marker::PhantomData<fn() -> S>,
145    __unsafe_private_named: (
146        ::core::option::Option<jacquard_common::CowStr<'a>>,
147        ::core::option::Option<bool>,
148        ::core::option::Option<Vec<jacquard_common::types::string::Nsid<'a>>>,
149        ::core::option::Option<jacquard_common::CowStr<'a>>,
150        ::core::option::Option<jacquard_common::CowStr<'a>>,
151        ::core::option::Option<Vec<jacquard_common::CowStr<'a>>>,
152        ::core::option::Option<jacquard_common::types::string::Datetime>,
153        ::core::option::Option<jacquard_common::types::string::Datetime>,
154        ::core::option::Option<Vec<jacquard_common::CowStr<'a>>>,
155        ::core::option::Option<jacquard_common::types::string::Datetime>,
156        ::core::option::Option<jacquard_common::types::string::Datetime>,
157        ::core::option::Option<Vec<jacquard_common::types::string::Uri<'a>>>,
158        ::core::option::Option<bool>,
159        ::core::option::Option<bool>,
160        ::core::option::Option<jacquard_common::types::string::Did<'a>>,
161        ::core::option::Option<i64>,
162        ::core::option::Option<i64>,
163        ::core::option::Option<i64>,
164        ::core::option::Option<i64>,
165        ::core::option::Option<i64>,
166        ::core::option::Option<i64>,
167        ::core::option::Option<bool>,
168        ::core::option::Option<i64>,
169        ::core::option::Option<i64>,
170        ::core::option::Option<jacquard_common::CowStr<'a>>,
171        ::core::option::Option<jacquard_common::types::string::Datetime>,
172        ::core::option::Option<jacquard_common::types::string::Datetime>,
173        ::core::option::Option<jacquard_common::CowStr<'a>>,
174        ::core::option::Option<jacquard_common::types::string::Datetime>,
175        ::core::option::Option<jacquard_common::types::string::Datetime>,
176        ::core::option::Option<jacquard_common::CowStr<'a>>,
177        ::core::option::Option<jacquard_common::CowStr<'a>>,
178        ::core::option::Option<jacquard_common::types::string::Uri<'a>>,
179        ::core::option::Option<jacquard_common::CowStr<'a>>,
180        ::core::option::Option<Vec<jacquard_common::CowStr<'a>>>,
181        ::core::option::Option<bool>,
182    ),
183    _phantom: ::core::marker::PhantomData<&'a ()>,
184}
185
186impl<'a> QueryStatuses<'a> {
187    /// Create a new builder for this type
188    pub fn new() -> QueryStatusesBuilder<'a, query_statuses_state::Empty> {
189        QueryStatusesBuilder::new()
190    }
191}
192
193impl<'a> QueryStatusesBuilder<'a, query_statuses_state::Empty> {
194    /// Create a new builder with all fields unset
195    pub fn new() -> Self {
196        QueryStatusesBuilder {
197            _phantom_state: ::core::marker::PhantomData,
198            __unsafe_private_named: (
199                None,
200                None,
201                None,
202                None,
203                None,
204                None,
205                None,
206                None,
207                None,
208                None,
209                None,
210                None,
211                None,
212                None,
213                None,
214                None,
215                None,
216                None,
217                None,
218                None,
219                None,
220                None,
221                None,
222                None,
223                None,
224                None,
225                None,
226                None,
227                None,
228                None,
229                None,
230                None,
231                None,
232                None,
233                None,
234                None,
235            ),
236            _phantom: ::core::marker::PhantomData,
237        }
238    }
239}
240
241impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
242    /// Set the `ageAssuranceState` field (optional)
243    pub fn age_assurance_state(
244        mut self,
245        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
246    ) -> Self {
247        self.__unsafe_private_named.0 = value.into();
248        self
249    }
250    /// Set the `ageAssuranceState` field to an Option value (optional)
251    pub fn maybe_age_assurance_state(
252        mut self,
253        value: Option<jacquard_common::CowStr<'a>>,
254    ) -> Self {
255        self.__unsafe_private_named.0 = value;
256        self
257    }
258}
259
260impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
261    /// Set the `appealed` field (optional)
262    pub fn appealed(mut self, value: impl Into<Option<bool>>) -> Self {
263        self.__unsafe_private_named.1 = value.into();
264        self
265    }
266    /// Set the `appealed` field to an Option value (optional)
267    pub fn maybe_appealed(mut self, value: Option<bool>) -> Self {
268        self.__unsafe_private_named.1 = value;
269        self
270    }
271}
272
273impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
274    /// Set the `collections` field (optional)
275    pub fn collections(
276        mut self,
277        value: impl Into<Option<Vec<jacquard_common::types::string::Nsid<'a>>>>,
278    ) -> Self {
279        self.__unsafe_private_named.2 = value.into();
280        self
281    }
282    /// Set the `collections` field to an Option value (optional)
283    pub fn maybe_collections(
284        mut self,
285        value: Option<Vec<jacquard_common::types::string::Nsid<'a>>>,
286    ) -> Self {
287        self.__unsafe_private_named.2 = value;
288        self
289    }
290}
291
292impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
293    /// Set the `comment` field (optional)
294    pub fn comment(
295        mut self,
296        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
297    ) -> Self {
298        self.__unsafe_private_named.3 = value.into();
299        self
300    }
301    /// Set the `comment` field to an Option value (optional)
302    pub fn maybe_comment(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self {
303        self.__unsafe_private_named.3 = value;
304        self
305    }
306}
307
308impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
309    /// Set the `cursor` field (optional)
310    pub fn cursor(
311        mut self,
312        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
313    ) -> Self {
314        self.__unsafe_private_named.4 = value.into();
315        self
316    }
317    /// Set the `cursor` field to an Option value (optional)
318    pub fn maybe_cursor(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self {
319        self.__unsafe_private_named.4 = value;
320        self
321    }
322}
323
324impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
325    /// Set the `excludeTags` field (optional)
326    pub fn exclude_tags(
327        mut self,
328        value: impl Into<Option<Vec<jacquard_common::CowStr<'a>>>>,
329    ) -> Self {
330        self.__unsafe_private_named.5 = value.into();
331        self
332    }
333    /// Set the `excludeTags` field to an Option value (optional)
334    pub fn maybe_exclude_tags(
335        mut self,
336        value: Option<Vec<jacquard_common::CowStr<'a>>>,
337    ) -> Self {
338        self.__unsafe_private_named.5 = value;
339        self
340    }
341}
342
343impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
344    /// Set the `hostingDeletedAfter` field (optional)
345    pub fn hosting_deleted_after(
346        mut self,
347        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
348    ) -> Self {
349        self.__unsafe_private_named.6 = value.into();
350        self
351    }
352    /// Set the `hostingDeletedAfter` field to an Option value (optional)
353    pub fn maybe_hosting_deleted_after(
354        mut self,
355        value: Option<jacquard_common::types::string::Datetime>,
356    ) -> Self {
357        self.__unsafe_private_named.6 = value;
358        self
359    }
360}
361
362impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
363    /// Set the `hostingDeletedBefore` field (optional)
364    pub fn hosting_deleted_before(
365        mut self,
366        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
367    ) -> Self {
368        self.__unsafe_private_named.7 = value.into();
369        self
370    }
371    /// Set the `hostingDeletedBefore` field to an Option value (optional)
372    pub fn maybe_hosting_deleted_before(
373        mut self,
374        value: Option<jacquard_common::types::string::Datetime>,
375    ) -> Self {
376        self.__unsafe_private_named.7 = value;
377        self
378    }
379}
380
381impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
382    /// Set the `hostingStatuses` field (optional)
383    pub fn hosting_statuses(
384        mut self,
385        value: impl Into<Option<Vec<jacquard_common::CowStr<'a>>>>,
386    ) -> Self {
387        self.__unsafe_private_named.8 = value.into();
388        self
389    }
390    /// Set the `hostingStatuses` field to an Option value (optional)
391    pub fn maybe_hosting_statuses(
392        mut self,
393        value: Option<Vec<jacquard_common::CowStr<'a>>>,
394    ) -> Self {
395        self.__unsafe_private_named.8 = value;
396        self
397    }
398}
399
400impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
401    /// Set the `hostingUpdatedAfter` field (optional)
402    pub fn hosting_updated_after(
403        mut self,
404        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
405    ) -> Self {
406        self.__unsafe_private_named.9 = value.into();
407        self
408    }
409    /// Set the `hostingUpdatedAfter` field to an Option value (optional)
410    pub fn maybe_hosting_updated_after(
411        mut self,
412        value: Option<jacquard_common::types::string::Datetime>,
413    ) -> Self {
414        self.__unsafe_private_named.9 = value;
415        self
416    }
417}
418
419impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
420    /// Set the `hostingUpdatedBefore` field (optional)
421    pub fn hosting_updated_before(
422        mut self,
423        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
424    ) -> Self {
425        self.__unsafe_private_named.10 = value.into();
426        self
427    }
428    /// Set the `hostingUpdatedBefore` field to an Option value (optional)
429    pub fn maybe_hosting_updated_before(
430        mut self,
431        value: Option<jacquard_common::types::string::Datetime>,
432    ) -> Self {
433        self.__unsafe_private_named.10 = value;
434        self
435    }
436}
437
438impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
439    /// Set the `ignoreSubjects` field (optional)
440    pub fn ignore_subjects(
441        mut self,
442        value: impl Into<Option<Vec<jacquard_common::types::string::Uri<'a>>>>,
443    ) -> Self {
444        self.__unsafe_private_named.11 = value.into();
445        self
446    }
447    /// Set the `ignoreSubjects` field to an Option value (optional)
448    pub fn maybe_ignore_subjects(
449        mut self,
450        value: Option<Vec<jacquard_common::types::string::Uri<'a>>>,
451    ) -> Self {
452        self.__unsafe_private_named.11 = value;
453        self
454    }
455}
456
457impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
458    /// Set the `includeAllUserRecords` field (optional)
459    pub fn include_all_user_records(mut self, value: impl Into<Option<bool>>) -> Self {
460        self.__unsafe_private_named.12 = value.into();
461        self
462    }
463    /// Set the `includeAllUserRecords` field to an Option value (optional)
464    pub fn maybe_include_all_user_records(mut self, value: Option<bool>) -> Self {
465        self.__unsafe_private_named.12 = value;
466        self
467    }
468}
469
470impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
471    /// Set the `includeMuted` field (optional)
472    pub fn include_muted(mut self, value: impl Into<Option<bool>>) -> Self {
473        self.__unsafe_private_named.13 = value.into();
474        self
475    }
476    /// Set the `includeMuted` field to an Option value (optional)
477    pub fn maybe_include_muted(mut self, value: Option<bool>) -> Self {
478        self.__unsafe_private_named.13 = value;
479        self
480    }
481}
482
483impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
484    /// Set the `lastReviewedBy` field (optional)
485    pub fn last_reviewed_by(
486        mut self,
487        value: impl Into<Option<jacquard_common::types::string::Did<'a>>>,
488    ) -> Self {
489        self.__unsafe_private_named.14 = value.into();
490        self
491    }
492    /// Set the `lastReviewedBy` field to an Option value (optional)
493    pub fn maybe_last_reviewed_by(
494        mut self,
495        value: Option<jacquard_common::types::string::Did<'a>>,
496    ) -> Self {
497        self.__unsafe_private_named.14 = value;
498        self
499    }
500}
501
502impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
503    /// Set the `limit` field (optional)
504    pub fn limit(mut self, value: impl Into<Option<i64>>) -> Self {
505        self.__unsafe_private_named.15 = value.into();
506        self
507    }
508    /// Set the `limit` field to an Option value (optional)
509    pub fn maybe_limit(mut self, value: Option<i64>) -> Self {
510        self.__unsafe_private_named.15 = value;
511        self
512    }
513}
514
515impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
516    /// Set the `minAccountSuspendCount` field (optional)
517    pub fn min_account_suspend_count(mut self, value: impl Into<Option<i64>>) -> Self {
518        self.__unsafe_private_named.16 = value.into();
519        self
520    }
521    /// Set the `minAccountSuspendCount` field to an Option value (optional)
522    pub fn maybe_min_account_suspend_count(mut self, value: Option<i64>) -> Self {
523        self.__unsafe_private_named.16 = value;
524        self
525    }
526}
527
528impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
529    /// Set the `minPriorityScore` field (optional)
530    pub fn min_priority_score(mut self, value: impl Into<Option<i64>>) -> Self {
531        self.__unsafe_private_named.17 = value.into();
532        self
533    }
534    /// Set the `minPriorityScore` field to an Option value (optional)
535    pub fn maybe_min_priority_score(mut self, value: Option<i64>) -> Self {
536        self.__unsafe_private_named.17 = value;
537        self
538    }
539}
540
541impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
542    /// Set the `minReportedRecordsCount` field (optional)
543    pub fn min_reported_records_count(mut self, value: impl Into<Option<i64>>) -> Self {
544        self.__unsafe_private_named.18 = value.into();
545        self
546    }
547    /// Set the `minReportedRecordsCount` field to an Option value (optional)
548    pub fn maybe_min_reported_records_count(mut self, value: Option<i64>) -> Self {
549        self.__unsafe_private_named.18 = value;
550        self
551    }
552}
553
554impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
555    /// Set the `minStrikeCount` field (optional)
556    pub fn min_strike_count(mut self, value: impl Into<Option<i64>>) -> Self {
557        self.__unsafe_private_named.19 = value.into();
558        self
559    }
560    /// Set the `minStrikeCount` field to an Option value (optional)
561    pub fn maybe_min_strike_count(mut self, value: Option<i64>) -> Self {
562        self.__unsafe_private_named.19 = value;
563        self
564    }
565}
566
567impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
568    /// Set the `minTakendownRecordsCount` field (optional)
569    pub fn min_takendown_records_count(mut self, value: impl Into<Option<i64>>) -> Self {
570        self.__unsafe_private_named.20 = value.into();
571        self
572    }
573    /// Set the `minTakendownRecordsCount` field to an Option value (optional)
574    pub fn maybe_min_takendown_records_count(mut self, value: Option<i64>) -> Self {
575        self.__unsafe_private_named.20 = value;
576        self
577    }
578}
579
580impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
581    /// Set the `onlyMuted` field (optional)
582    pub fn only_muted(mut self, value: impl Into<Option<bool>>) -> Self {
583        self.__unsafe_private_named.21 = value.into();
584        self
585    }
586    /// Set the `onlyMuted` field to an Option value (optional)
587    pub fn maybe_only_muted(mut self, value: Option<bool>) -> Self {
588        self.__unsafe_private_named.21 = value;
589        self
590    }
591}
592
593impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
594    /// Set the `queueCount` field (optional)
595    pub fn queue_count(mut self, value: impl Into<Option<i64>>) -> Self {
596        self.__unsafe_private_named.22 = value.into();
597        self
598    }
599    /// Set the `queueCount` field to an Option value (optional)
600    pub fn maybe_queue_count(mut self, value: Option<i64>) -> Self {
601        self.__unsafe_private_named.22 = value;
602        self
603    }
604}
605
606impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
607    /// Set the `queueIndex` field (optional)
608    pub fn queue_index(mut self, value: impl Into<Option<i64>>) -> Self {
609        self.__unsafe_private_named.23 = value.into();
610        self
611    }
612    /// Set the `queueIndex` field to an Option value (optional)
613    pub fn maybe_queue_index(mut self, value: Option<i64>) -> Self {
614        self.__unsafe_private_named.23 = value;
615        self
616    }
617}
618
619impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
620    /// Set the `queueSeed` field (optional)
621    pub fn queue_seed(
622        mut self,
623        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
624    ) -> Self {
625        self.__unsafe_private_named.24 = value.into();
626        self
627    }
628    /// Set the `queueSeed` field to an Option value (optional)
629    pub fn maybe_queue_seed(
630        mut self,
631        value: Option<jacquard_common::CowStr<'a>>,
632    ) -> Self {
633        self.__unsafe_private_named.24 = value;
634        self
635    }
636}
637
638impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
639    /// Set the `reportedAfter` field (optional)
640    pub fn reported_after(
641        mut self,
642        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
643    ) -> Self {
644        self.__unsafe_private_named.25 = value.into();
645        self
646    }
647    /// Set the `reportedAfter` field to an Option value (optional)
648    pub fn maybe_reported_after(
649        mut self,
650        value: Option<jacquard_common::types::string::Datetime>,
651    ) -> Self {
652        self.__unsafe_private_named.25 = value;
653        self
654    }
655}
656
657impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
658    /// Set the `reportedBefore` field (optional)
659    pub fn reported_before(
660        mut self,
661        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
662    ) -> Self {
663        self.__unsafe_private_named.26 = value.into();
664        self
665    }
666    /// Set the `reportedBefore` field to an Option value (optional)
667    pub fn maybe_reported_before(
668        mut self,
669        value: Option<jacquard_common::types::string::Datetime>,
670    ) -> Self {
671        self.__unsafe_private_named.26 = value;
672        self
673    }
674}
675
676impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
677    /// Set the `reviewState` field (optional)
678    pub fn review_state(
679        mut self,
680        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
681    ) -> Self {
682        self.__unsafe_private_named.27 = value.into();
683        self
684    }
685    /// Set the `reviewState` field to an Option value (optional)
686    pub fn maybe_review_state(
687        mut self,
688        value: Option<jacquard_common::CowStr<'a>>,
689    ) -> Self {
690        self.__unsafe_private_named.27 = value;
691        self
692    }
693}
694
695impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
696    /// Set the `reviewedAfter` field (optional)
697    pub fn reviewed_after(
698        mut self,
699        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
700    ) -> Self {
701        self.__unsafe_private_named.28 = value.into();
702        self
703    }
704    /// Set the `reviewedAfter` field to an Option value (optional)
705    pub fn maybe_reviewed_after(
706        mut self,
707        value: Option<jacquard_common::types::string::Datetime>,
708    ) -> Self {
709        self.__unsafe_private_named.28 = value;
710        self
711    }
712}
713
714impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
715    /// Set the `reviewedBefore` field (optional)
716    pub fn reviewed_before(
717        mut self,
718        value: impl Into<Option<jacquard_common::types::string::Datetime>>,
719    ) -> Self {
720        self.__unsafe_private_named.29 = value.into();
721        self
722    }
723    /// Set the `reviewedBefore` field to an Option value (optional)
724    pub fn maybe_reviewed_before(
725        mut self,
726        value: Option<jacquard_common::types::string::Datetime>,
727    ) -> Self {
728        self.__unsafe_private_named.29 = value;
729        self
730    }
731}
732
733impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
734    /// Set the `sortDirection` field (optional)
735    pub fn sort_direction(
736        mut self,
737        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
738    ) -> Self {
739        self.__unsafe_private_named.30 = value.into();
740        self
741    }
742    /// Set the `sortDirection` field to an Option value (optional)
743    pub fn maybe_sort_direction(
744        mut self,
745        value: Option<jacquard_common::CowStr<'a>>,
746    ) -> Self {
747        self.__unsafe_private_named.30 = value;
748        self
749    }
750}
751
752impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
753    /// Set the `sortField` field (optional)
754    pub fn sort_field(
755        mut self,
756        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
757    ) -> Self {
758        self.__unsafe_private_named.31 = value.into();
759        self
760    }
761    /// Set the `sortField` field to an Option value (optional)
762    pub fn maybe_sort_field(
763        mut self,
764        value: Option<jacquard_common::CowStr<'a>>,
765    ) -> Self {
766        self.__unsafe_private_named.31 = value;
767        self
768    }
769}
770
771impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
772    /// Set the `subject` field (optional)
773    pub fn subject(
774        mut self,
775        value: impl Into<Option<jacquard_common::types::string::Uri<'a>>>,
776    ) -> Self {
777        self.__unsafe_private_named.32 = value.into();
778        self
779    }
780    /// Set the `subject` field to an Option value (optional)
781    pub fn maybe_subject(
782        mut self,
783        value: Option<jacquard_common::types::string::Uri<'a>>,
784    ) -> Self {
785        self.__unsafe_private_named.32 = value;
786        self
787    }
788}
789
790impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
791    /// Set the `subjectType` field (optional)
792    pub fn subject_type(
793        mut self,
794        value: impl Into<Option<jacquard_common::CowStr<'a>>>,
795    ) -> Self {
796        self.__unsafe_private_named.33 = value.into();
797        self
798    }
799    /// Set the `subjectType` field to an Option value (optional)
800    pub fn maybe_subject_type(
801        mut self,
802        value: Option<jacquard_common::CowStr<'a>>,
803    ) -> Self {
804        self.__unsafe_private_named.33 = value;
805        self
806    }
807}
808
809impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
810    /// Set the `tags` field (optional)
811    pub fn tags(
812        mut self,
813        value: impl Into<Option<Vec<jacquard_common::CowStr<'a>>>>,
814    ) -> Self {
815        self.__unsafe_private_named.34 = value.into();
816        self
817    }
818    /// Set the `tags` field to an Option value (optional)
819    pub fn maybe_tags(
820        mut self,
821        value: Option<Vec<jacquard_common::CowStr<'a>>>,
822    ) -> Self {
823        self.__unsafe_private_named.34 = value;
824        self
825    }
826}
827
828impl<'a, S: query_statuses_state::State> QueryStatusesBuilder<'a, S> {
829    /// Set the `takendown` field (optional)
830    pub fn takendown(mut self, value: impl Into<Option<bool>>) -> Self {
831        self.__unsafe_private_named.35 = value.into();
832        self
833    }
834    /// Set the `takendown` field to an Option value (optional)
835    pub fn maybe_takendown(mut self, value: Option<bool>) -> Self {
836        self.__unsafe_private_named.35 = value;
837        self
838    }
839}
840
841impl<'a, S> QueryStatusesBuilder<'a, S>
842where
843    S: query_statuses_state::State,
844{
845    /// Build the final struct
846    pub fn build(self) -> QueryStatuses<'a> {
847        QueryStatuses {
848            age_assurance_state: self.__unsafe_private_named.0,
849            appealed: self.__unsafe_private_named.1,
850            collections: self.__unsafe_private_named.2,
851            comment: self.__unsafe_private_named.3,
852            cursor: self.__unsafe_private_named.4,
853            exclude_tags: self.__unsafe_private_named.5,
854            hosting_deleted_after: self.__unsafe_private_named.6,
855            hosting_deleted_before: self.__unsafe_private_named.7,
856            hosting_statuses: self.__unsafe_private_named.8,
857            hosting_updated_after: self.__unsafe_private_named.9,
858            hosting_updated_before: self.__unsafe_private_named.10,
859            ignore_subjects: self.__unsafe_private_named.11,
860            include_all_user_records: self.__unsafe_private_named.12,
861            include_muted: self.__unsafe_private_named.13,
862            last_reviewed_by: self.__unsafe_private_named.14,
863            limit: self.__unsafe_private_named.15,
864            min_account_suspend_count: self.__unsafe_private_named.16,
865            min_priority_score: self.__unsafe_private_named.17,
866            min_reported_records_count: self.__unsafe_private_named.18,
867            min_strike_count: self.__unsafe_private_named.19,
868            min_takendown_records_count: self.__unsafe_private_named.20,
869            only_muted: self.__unsafe_private_named.21,
870            queue_count: self.__unsafe_private_named.22,
871            queue_index: self.__unsafe_private_named.23,
872            queue_seed: self.__unsafe_private_named.24,
873            reported_after: self.__unsafe_private_named.25,
874            reported_before: self.__unsafe_private_named.26,
875            review_state: self.__unsafe_private_named.27,
876            reviewed_after: self.__unsafe_private_named.28,
877            reviewed_before: self.__unsafe_private_named.29,
878            sort_direction: self.__unsafe_private_named.30,
879            sort_field: self.__unsafe_private_named.31,
880            subject: self.__unsafe_private_named.32,
881            subject_type: self.__unsafe_private_named.33,
882            tags: self.__unsafe_private_named.34,
883            takendown: self.__unsafe_private_named.35,
884        }
885    }
886}
887
888#[jacquard_derive::lexicon]
889#[derive(
890    serde::Serialize,
891    serde::Deserialize,
892    Debug,
893    Clone,
894    PartialEq,
895    Eq,
896    jacquard_derive::IntoStatic
897)]
898#[serde(rename_all = "camelCase")]
899pub struct QueryStatusesOutput<'a> {
900    #[serde(skip_serializing_if = "std::option::Option::is_none")]
901    #[serde(borrow)]
902    pub cursor: std::option::Option<jacquard_common::CowStr<'a>>,
903    #[serde(borrow)]
904    pub subject_statuses: Vec<crate::tools_ozone::moderation::SubjectStatusView<'a>>,
905}
906
907/// Response type for
908///tools.ozone.moderation.queryStatuses
909pub struct QueryStatusesResponse;
910impl jacquard_common::xrpc::XrpcResp for QueryStatusesResponse {
911    const NSID: &'static str = "tools.ozone.moderation.queryStatuses";
912    const ENCODING: &'static str = "application/json";
913    type Output<'de> = QueryStatusesOutput<'de>;
914    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
915}
916
917impl<'a> jacquard_common::xrpc::XrpcRequest for QueryStatuses<'a> {
918    const NSID: &'static str = "tools.ozone.moderation.queryStatuses";
919    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
920    type Response = QueryStatusesResponse;
921}
922
923/// Endpoint type for
924///tools.ozone.moderation.queryStatuses
925pub struct QueryStatusesRequest;
926impl jacquard_common::xrpc::XrpcEndpoint for QueryStatusesRequest {
927    const PATH: &'static str = "/xrpc/tools.ozone.moderation.queryStatuses";
928    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
929    type Request<'de> = QueryStatuses<'de>;
930    type Response = QueryStatusesResponse;
931}