Struct contentful_fork::QueryBuilder
source · [−]pub struct QueryBuilder { /* private fields */ }
Implementations
sourceimpl QueryBuilder
impl QueryBuilder
pub fn new() -> QueryBuilder
pub fn content_type_is(self, content_type_id: &str) -> QueryBuilder
pub fn order_by(self, order: &str) -> QueryBuilder
pub fn limit(self, limit: i32) -> QueryBuilder
pub fn skip(self, skip: i32) -> QueryBuilder
pub fn include(self, level: i32) -> QueryBuilder
pub fn locale_is(self, locale: &str, value: &str) -> QueryBuilder
pub fn field_equals(self, field: &str, value: &str) -> QueryBuilder
pub fn field_does_not_equal(self, field: &str, value: &str) -> QueryBuilder
pub fn field_equals_all(self, field: &str, values: &str) -> QueryBuilder
pub fn field_includes(self, field: &str, values: &str) -> QueryBuilder
pub fn field_excludes(self, field: &str, values: &str) -> QueryBuilder
pub fn field_exists(self, field: &str, must_exist: bool) -> QueryBuilder
pub fn field_less_than(self, field: &str, value: &str) -> QueryBuilder
pub fn field_less_than_or_equal_to(
self,
field: &str,
value: &str
) -> QueryBuilder
pub fn field_greater_than(self, field: &str, value: &str) -> QueryBuilder
pub fn field_greater_than_or_equal_to(
self,
field: &str,
value: &str
) -> QueryBuilder
pub fn field_matches(self, field: &str, value: &str) -> QueryBuilder
pub fn links_to_entry(self, id: &str) -> QueryBuilder
pub fn links_to_asset(self, id: &str) -> QueryBuilder
pub fn build(&self) -> String
pub fn add_field_restriction(
self,
field: &str,
value: &str,
operator: &str
) -> QueryBuilder
Auto Trait Implementations
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more