pub struct DistinctValuesQuery {
pub filter: Option<Value>,
pub bypass_ripple: Option<bool>,
pub bypass_cache: Option<bool>,
}Expand description
Query options for the distinct_values endpoint.
Sent as a POST body to POST /api/distinct/{collection}/{field}.
Fields§
§filter: Option<Value>Optional filter expression (same format as Query::filter).
bypass_ripple: Option<bool>Bypass ripple propagation.
bypass_cache: Option<bool>Bypass cache.
Implementations§
Source§impl DistinctValuesQuery
impl DistinctValuesQuery
Sourcepub fn filter(self, filter: Value) -> Self
pub fn filter(self, filter: Value) -> Self
Restrict which records are examined using a filter expression.
Sourcepub fn bypass_ripple(self, bypass: bool) -> Self
pub fn bypass_ripple(self, bypass: bool) -> Self
Bypass ripple propagation for this query.
Sourcepub fn bypass_cache(self, bypass: bool) -> Self
pub fn bypass_cache(self, bypass: bool) -> Self
Bypass the cache for this query.
Trait Implementations§
Source§impl Clone for DistinctValuesQuery
impl Clone for DistinctValuesQuery
Source§fn clone(&self) -> DistinctValuesQuery
fn clone(&self) -> DistinctValuesQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DistinctValuesQuery
impl Debug for DistinctValuesQuery
Source§impl Default for DistinctValuesQuery
impl Default for DistinctValuesQuery
Source§fn default() -> DistinctValuesQuery
fn default() -> DistinctValuesQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DistinctValuesQuery
impl<'de> Deserialize<'de> for DistinctValuesQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DistinctValuesQuery
impl RefUnwindSafe for DistinctValuesQuery
impl Send for DistinctValuesQuery
impl Sync for DistinctValuesQuery
impl Unpin for DistinctValuesQuery
impl UnsafeUnpin for DistinctValuesQuery
impl UnwindSafe for DistinctValuesQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more