pub struct QueryRequest {
pub where_: Option<Value>,
pub sort: Vec<Sort>,
pub limit: Option<u32>,
pub cursor: Option<String>,
pub expand: Vec<Expand>,
pub version: Option<VersionSelector>,
}Expand description
The body of POST /cards/query and POST /evals/query.
Fields§
§where_: Option<Value>The filter: and / or / not / leaf. Grammar and legal paths are
defined by the query language; see GET /schemas/query.
sort: Vec<Sort>Sort keys, applied in order.
limit: Option<u32>Page size. The server clamps it to its maximum.
cursor: Option<String>Opaque cursor from a previous page’s next_cursor.
expand: Vec<Expand>Extra fields to include on each item.
version: Option<VersionSelector>Which versions to search. Defaults to latest.
Trait Implementations§
Source§impl Clone for QueryRequest
impl Clone for QueryRequest
Source§impl Debug for QueryRequest
impl Debug for QueryRequest
Source§impl Default for QueryRequest
impl Default for QueryRequest
Source§impl<'de> Deserialize<'de> for QueryRequest
impl<'de> Deserialize<'de> for QueryRequest
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 JsonSchema for QueryRequest
impl JsonSchema for QueryRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for QueryRequest
impl PartialEq for QueryRequest
Source§impl Serialize for QueryRequest
impl Serialize for QueryRequest
impl StructuralPartialEq for QueryRequest
Auto Trait Implementations§
impl Freeze for QueryRequest
impl RefUnwindSafe for QueryRequest
impl Send for QueryRequest
impl Sync for QueryRequest
impl Unpin for QueryRequest
impl UnsafeUnpin for QueryRequest
impl UnwindSafe for QueryRequest
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