pub struct StructuredQuery {
pub query: String,
pub filter: Option<FilterDirectiveEnum>,
pub limit: Option<usize>,
}Expand description
Structured query.
Fields§
§query: StringQuery string.
filter: Option<FilterDirectiveEnum>Filtering expression.
limit: Option<usize>Limit on the number of results.
Implementations§
Source§impl StructuredQuery
impl StructuredQuery
Sourcepub fn new(
query: impl Into<String>,
filter: Option<FilterDirectiveEnum>,
limit: Option<usize>,
) -> Self
pub fn new( query: impl Into<String>, filter: Option<FilterDirectiveEnum>, limit: Option<usize>, ) -> Self
Create a new StructuredQuery.
Sourcepub fn query_only(query: impl Into<String>) -> Self
pub fn query_only(query: impl Into<String>) -> Self
Create a StructuredQuery with only a query string.
Sourcepub fn with_filter(
query: impl Into<String>,
filter: impl Into<FilterDirectiveEnum>,
) -> Self
pub fn with_filter( query: impl Into<String>, filter: impl Into<FilterDirectiveEnum>, ) -> Self
Create a StructuredQuery with a query and filter.
Trait Implementations§
Source§impl Clone for StructuredQuery
impl Clone for StructuredQuery
Source§fn clone(&self) -> StructuredQuery
fn clone(&self) -> StructuredQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 StructuredQuery
impl Debug for StructuredQuery
Source§impl<'de> Deserialize<'de> for StructuredQuery
impl<'de> Deserialize<'de> for StructuredQuery
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
Source§impl Expr for StructuredQuery
impl Expr for StructuredQuery
Auto Trait Implementations§
impl Freeze for StructuredQuery
impl RefUnwindSafe for StructuredQuery
impl Send for StructuredQuery
impl Sync for StructuredQuery
impl Unpin for StructuredQuery
impl UnwindSafe for StructuredQuery
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