QueryEvents

Struct QueryEvents 

Source
pub struct QueryEvents<'a> {
Show 22 fields pub added_labels: Option<Vec<CowStr<'a>>>, pub added_tags: Option<Vec<CowStr<'a>>>, pub age_assurance_state: Option<CowStr<'a>>, pub batch_id: Option<CowStr<'a>>, pub collections: Option<Vec<Nsid<'a>>>, pub comment: Option<CowStr<'a>>, pub created_after: Option<Datetime>, pub created_before: Option<Datetime>, pub created_by: Option<Did<'a>>, pub cursor: Option<CowStr<'a>>, pub has_comment: Option<bool>, pub include_all_user_records: Option<bool>, pub limit: Option<i64>, pub mod_tool: Option<Vec<CowStr<'a>>>, pub policies: Option<Vec<CowStr<'a>>>, pub removed_labels: Option<Vec<CowStr<'a>>>, pub removed_tags: Option<Vec<CowStr<'a>>>, pub report_types: Option<Vec<CowStr<'a>>>, pub sort_direction: Option<CowStr<'a>>, pub subject: Option<Uri<'a>>, pub subject_type: Option<CowStr<'a>>, pub types: Option<Vec<CowStr<'a>>>,
}

Fields§

§added_labels: Option<Vec<CowStr<'a>>>§added_tags: Option<Vec<CowStr<'a>>>§age_assurance_state: Option<CowStr<'a>>§batch_id: Option<CowStr<'a>>§collections: Option<Vec<Nsid<'a>>>§comment: Option<CowStr<'a>>§created_after: Option<Datetime>§created_before: Option<Datetime>§created_by: Option<Did<'a>>§cursor: Option<CowStr<'a>>§has_comment: Option<bool>§include_all_user_records: Option<bool>

(default: false)

§limit: Option<i64>

(default: 50, min: 1, max: 100)

§mod_tool: Option<Vec<CowStr<'a>>>§policies: Option<Vec<CowStr<'a>>>§removed_labels: Option<Vec<CowStr<'a>>>§removed_tags: Option<Vec<CowStr<'a>>>§report_types: Option<Vec<CowStr<'a>>>§sort_direction: Option<CowStr<'a>>

(default: “desc”)

§subject: Option<Uri<'a>>§subject_type: Option<CowStr<'a>>§types: Option<Vec<CowStr<'a>>>

Implementations§

Source§

impl<'a> QueryEvents<'a>

Source

pub fn new() -> QueryEventsBuilder<'a>

Create an instance of QueryEvents using the builder syntax

Trait Implementations§

Source§

impl<'a> Clone for QueryEvents<'a>

Source§

fn clone(&self) -> QueryEvents<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for QueryEvents<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de: 'a, 'a> Deserialize<'de> for QueryEvents<'a>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'a> IntoStatic for QueryEvents<'a>

Source§

type Output = QueryEvents<'static>

The “owned” variant of the type. For Cow<'a, str>, this is Cow<'static, str>, for example.
Source§

fn into_static(self) -> Self::Output

Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§

impl<'a> PartialEq for QueryEvents<'a>

Source§

fn eq(&self, other: &QueryEvents<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Serialize for QueryEvents<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'de> XrpcRequest<'de> for QueryEvents<'de>

Source§

const NSID: &'static str = "tools.ozone.moderation.queryEvents"

The NSID for this XRPC method
Source§

const METHOD: XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query

XRPC method (query/GET or procedure/POST)
Source§

type Response = QueryEventsResponse

Response type returned from the XRPC call (marker struct)
Source§

fn encode_body(&self) -> Result<Vec<u8>, EncodeError>

Encode the request body for procedures. Read more
Source§

fn decode_body(body: &'de [u8]) -> Result<Box<Self>, DecodeError>

Decode the request body for procedures. Read more
Source§

impl<'a> Eq for QueryEvents<'a>

Source§

impl<'a> StructuralPartialEq for QueryEvents<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for QueryEvents<'a>

§

impl<'a> RefUnwindSafe for QueryEvents<'a>

§

impl<'a> Send for QueryEvents<'a>

§

impl<'a> Sync for QueryEvents<'a>

§

impl<'a> Unpin for QueryEvents<'a>

§

impl<'a> UnwindSafe for QueryEvents<'a>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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