1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use params::{Identifiable, Timestamp};
use resources::File;
use serde_json as json;
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ScheduledQueryRun {
pub id: String,
pub object: String,
pub created: Timestamp,
pub data_load_time: Timestamp,
pub error: Option<json::Value>,
pub file: File,
pub livemode: bool,
pub result_available_until: Timestamp,
pub sql: String,
pub status: String,
pub title: String,
}
impl Identifiable for ScheduledQueryRun {
fn id(&self) -> &str {
&self.id
}
}