1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
use params::Timestamp;
use resources::File;
use serde_json as json;

/// The resource representing a Stripe scheduled query run.
///
/// For more details see https://stripe.com/docs/api#scheduled_query_run_object.
#[derive(Debug, Deserialize)]
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, // (completed, canceled, failed, timed_out)
    pub title: String,
}