pub struct Query {
pub id: u64,
pub name: String,
pub is_public: bool,
pub project_id: Option<u64>,
pub user_id: u64,
pub description: Option<String>,
pub filters: Value,
pub column_names: Vec<String>,
pub sort_criteria: Value,
pub options: Value,
pub query_type: String,
}Expand description
a type for a detailed query to use as an API return type
alternatively you can use your own type limited to the fields you need
Fields§
§id: u64numeric id
name: Stringdisplay name
is_public: boolis the query public
project_id: Option<u64>the project for project-specific queries
user_id: u64the user who created the query
description: Option<String>a description of the query
filters: Valuethe filters for the query
column_names: Vec<String>the column names for the query
sort_criteria: Valuethe sort criteria for the query
options: Valuethe options for the query
query_type: Stringthe type of the query
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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
impl Eq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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