pub struct Query {
pub id: Option<i32>,
pub name: String,
pub description: Option<String>,
pub database_id: DatabaseId,
pub query_type: QueryType,
pub query: Value,
pub collection_id: Option<i32>,
pub archived: Option<bool>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
Query entity representing a database query
Fields§
§id: Option<i32>
Query ID
name: String
Query name
description: Option<String>
Query description
database_id: DatabaseId
Database ID
query_type: QueryType
Query type (native, MBQL)
query: Value
Query definition
collection_id: Option<i32>
Collection ID
archived: Option<bool>
Is archived
created_at: Option<DateTime<Utc>>
Created timestamp
updated_at: Option<DateTime<Utc>>
Updated timestamp
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
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