QueryStatusesBuilder

Struct QueryStatusesBuilder 

Source
pub struct QueryStatusesBuilder<'a, S: State> { /* private fields */ }
Expand description

Builder for constructing an instance of this type

Implementations§

Source§

impl<'a> QueryStatusesBuilder<'a, Empty>

Source

pub fn new() -> Self

Create a new builder with all fields unset

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn age_assurance_state(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the ageAssuranceState field (optional)

Source

pub fn maybe_age_assurance_state(self, value: Option<CowStr<'a>>) -> Self

Set the ageAssuranceState field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn appealed(self, value: impl Into<Option<bool>>) -> Self

Set the appealed field (optional)

Source

pub fn maybe_appealed(self, value: Option<bool>) -> Self

Set the appealed field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn collections(self, value: impl Into<Option<Vec<Nsid<'a>>>>) -> Self

Set the collections field (optional)

Source

pub fn maybe_collections(self, value: Option<Vec<Nsid<'a>>>) -> Self

Set the collections field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn comment(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the comment field (optional)

Source

pub fn maybe_comment(self, value: Option<CowStr<'a>>) -> Self

Set the comment field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn cursor(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the cursor field (optional)

Source

pub fn maybe_cursor(self, value: Option<CowStr<'a>>) -> Self

Set the cursor field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn exclude_tags(self, value: impl Into<Option<Vec<CowStr<'a>>>>) -> Self

Set the excludeTags field (optional)

Source

pub fn maybe_exclude_tags(self, value: Option<Vec<CowStr<'a>>>) -> Self

Set the excludeTags field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn hosting_deleted_after(self, value: impl Into<Option<Datetime>>) -> Self

Set the hostingDeletedAfter field (optional)

Source

pub fn maybe_hosting_deleted_after(self, value: Option<Datetime>) -> Self

Set the hostingDeletedAfter field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn hosting_deleted_before(self, value: impl Into<Option<Datetime>>) -> Self

Set the hostingDeletedBefore field (optional)

Source

pub fn maybe_hosting_deleted_before(self, value: Option<Datetime>) -> Self

Set the hostingDeletedBefore field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn hosting_statuses(self, value: impl Into<Option<Vec<CowStr<'a>>>>) -> Self

Set the hostingStatuses field (optional)

Source

pub fn maybe_hosting_statuses(self, value: Option<Vec<CowStr<'a>>>) -> Self

Set the hostingStatuses field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn hosting_updated_after(self, value: impl Into<Option<Datetime>>) -> Self

Set the hostingUpdatedAfter field (optional)

Source

pub fn maybe_hosting_updated_after(self, value: Option<Datetime>) -> Self

Set the hostingUpdatedAfter field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn hosting_updated_before(self, value: impl Into<Option<Datetime>>) -> Self

Set the hostingUpdatedBefore field (optional)

Source

pub fn maybe_hosting_updated_before(self, value: Option<Datetime>) -> Self

Set the hostingUpdatedBefore field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn ignore_subjects(self, value: impl Into<Option<Vec<Uri<'a>>>>) -> Self

Set the ignoreSubjects field (optional)

Source

pub fn maybe_ignore_subjects(self, value: Option<Vec<Uri<'a>>>) -> Self

Set the ignoreSubjects field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn include_all_user_records(self, value: impl Into<Option<bool>>) -> Self

Set the includeAllUserRecords field (optional)

Source

pub fn maybe_include_all_user_records(self, value: Option<bool>) -> Self

Set the includeAllUserRecords field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn include_muted(self, value: impl Into<Option<bool>>) -> Self

Set the includeMuted field (optional)

Source

pub fn maybe_include_muted(self, value: Option<bool>) -> Self

Set the includeMuted field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn last_reviewed_by(self, value: impl Into<Option<Did<'a>>>) -> Self

Set the lastReviewedBy field (optional)

Source

pub fn maybe_last_reviewed_by(self, value: Option<Did<'a>>) -> Self

Set the lastReviewedBy field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn limit(self, value: impl Into<Option<i64>>) -> Self

Set the limit field (optional)

Source

pub fn maybe_limit(self, value: Option<i64>) -> Self

Set the limit field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn min_account_suspend_count(self, value: impl Into<Option<i64>>) -> Self

Set the minAccountSuspendCount field (optional)

Source

pub fn maybe_min_account_suspend_count(self, value: Option<i64>) -> Self

Set the minAccountSuspendCount field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn min_priority_score(self, value: impl Into<Option<i64>>) -> Self

Set the minPriorityScore field (optional)

Source

pub fn maybe_min_priority_score(self, value: Option<i64>) -> Self

Set the minPriorityScore field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn min_reported_records_count(self, value: impl Into<Option<i64>>) -> Self

Set the minReportedRecordsCount field (optional)

Source

pub fn maybe_min_reported_records_count(self, value: Option<i64>) -> Self

Set the minReportedRecordsCount field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn min_strike_count(self, value: impl Into<Option<i64>>) -> Self

Set the minStrikeCount field (optional)

Source

pub fn maybe_min_strike_count(self, value: Option<i64>) -> Self

Set the minStrikeCount field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn min_takendown_records_count(self, value: impl Into<Option<i64>>) -> Self

Set the minTakendownRecordsCount field (optional)

Source

pub fn maybe_min_takendown_records_count(self, value: Option<i64>) -> Self

Set the minTakendownRecordsCount field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn only_muted(self, value: impl Into<Option<bool>>) -> Self

Set the onlyMuted field (optional)

Source

pub fn maybe_only_muted(self, value: Option<bool>) -> Self

Set the onlyMuted field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn queue_count(self, value: impl Into<Option<i64>>) -> Self

Set the queueCount field (optional)

Source

pub fn maybe_queue_count(self, value: Option<i64>) -> Self

Set the queueCount field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn queue_index(self, value: impl Into<Option<i64>>) -> Self

Set the queueIndex field (optional)

Source

pub fn maybe_queue_index(self, value: Option<i64>) -> Self

Set the queueIndex field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn queue_seed(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the queueSeed field (optional)

Source

pub fn maybe_queue_seed(self, value: Option<CowStr<'a>>) -> Self

Set the queueSeed field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn reported_after(self, value: impl Into<Option<Datetime>>) -> Self

Set the reportedAfter field (optional)

Source

pub fn maybe_reported_after(self, value: Option<Datetime>) -> Self

Set the reportedAfter field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn reported_before(self, value: impl Into<Option<Datetime>>) -> Self

Set the reportedBefore field (optional)

Source

pub fn maybe_reported_before(self, value: Option<Datetime>) -> Self

Set the reportedBefore field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn review_state(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the reviewState field (optional)

Source

pub fn maybe_review_state(self, value: Option<CowStr<'a>>) -> Self

Set the reviewState field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn reviewed_after(self, value: impl Into<Option<Datetime>>) -> Self

Set the reviewedAfter field (optional)

Source

pub fn maybe_reviewed_after(self, value: Option<Datetime>) -> Self

Set the reviewedAfter field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn reviewed_before(self, value: impl Into<Option<Datetime>>) -> Self

Set the reviewedBefore field (optional)

Source

pub fn maybe_reviewed_before(self, value: Option<Datetime>) -> Self

Set the reviewedBefore field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn sort_direction(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the sortDirection field (optional)

Source

pub fn maybe_sort_direction(self, value: Option<CowStr<'a>>) -> Self

Set the sortDirection field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn sort_field(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the sortField field (optional)

Source

pub fn maybe_sort_field(self, value: Option<CowStr<'a>>) -> Self

Set the sortField field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn subject(self, value: impl Into<Option<Uri<'a>>>) -> Self

Set the subject field (optional)

Source

pub fn maybe_subject(self, value: Option<Uri<'a>>) -> Self

Set the subject field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn subject_type(self, value: impl Into<Option<CowStr<'a>>>) -> Self

Set the subjectType field (optional)

Source

pub fn maybe_subject_type(self, value: Option<CowStr<'a>>) -> Self

Set the subjectType field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn tags(self, value: impl Into<Option<Vec<CowStr<'a>>>>) -> Self

Set the tags field (optional)

Source

pub fn maybe_tags(self, value: Option<Vec<CowStr<'a>>>) -> Self

Set the tags field to an Option value (optional)

Source§

impl<'a, S: State> QueryStatusesBuilder<'a, S>

Source

pub fn takendown(self, value: impl Into<Option<bool>>) -> Self

Set the takendown field (optional)

Source

pub fn maybe_takendown(self, value: Option<bool>) -> Self

Set the takendown field to an Option value (optional)

Source§

impl<'a, S> QueryStatusesBuilder<'a, S>
where S: State,

Source

pub fn build(self) -> QueryStatuses<'a>

Build the final struct

Auto Trait Implementations§

§

impl<'a, S> Freeze for QueryStatusesBuilder<'a, S>

§

impl<'a, S> RefUnwindSafe for QueryStatusesBuilder<'a, S>

§

impl<'a, S> Send for QueryStatusesBuilder<'a, S>

§

impl<'a, S> Sync for QueryStatusesBuilder<'a, S>

§

impl<'a, S> Unpin for QueryStatusesBuilder<'a, S>

§

impl<'a, S> UnwindSafe for QueryStatusesBuilder<'a, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,