Stash
This commit is contained in:
parent
45f1497df2
commit
6f629a5976
@ -15,6 +15,7 @@ async fn main() {
|
|||||||
dbg!(api.search(toggl::types::TogglReportFilters {
|
dbg!(api.search(toggl::types::TogglReportFilters {
|
||||||
start_date: Some(NaiveDate::from_ymd_opt(2024, 07, 10).unwrap()),
|
start_date: Some(NaiveDate::from_ymd_opt(2024, 07, 10).unwrap()),
|
||||||
end_date: Some(NaiveDate::from_ymd_opt(2024, 07, 16).unwrap()),
|
end_date: Some(NaiveDate::from_ymd_opt(2024, 07, 16).unwrap()),
|
||||||
|
enrich_response: Some(true),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}).await);
|
}).await);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -347,6 +347,9 @@ pub mod types {
|
|||||||
pub currency: String,
|
pub currency: String,
|
||||||
pub time_entries: Vec<ReportEntryTimeDetails>,
|
pub time_entries: Vec<ReportEntryTimeDetails>,
|
||||||
pub row_number: u32,
|
pub row_number: u32,
|
||||||
|
|
||||||
|
#[serde(flatten)]
|
||||||
|
pub rest: HashMap<String, serde_json::Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Serialize, Deserialize, Debug)]
|
#[derive(Clone, Serialize, Deserialize, Debug)]
|
||||||
@ -364,7 +367,7 @@ pub mod types {
|
|||||||
pub billable: Option<bool>,
|
pub billable: Option<bool>,
|
||||||
pub client_ids: Option<Vec<u64>>,
|
pub client_ids: Option<Vec<u64>>,
|
||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
pub end_date: Option<String>,
|
pub end_date: Option<NaiveDate>,
|
||||||
pub first_id: Option<u64>,
|
pub first_id: Option<u64>,
|
||||||
pub first_row_number: Option<u64>,
|
pub first_row_number: Option<u64>,
|
||||||
pub first_timestamp: Option<u64>,
|
pub first_timestamp: Option<u64>,
|
||||||
@ -382,11 +385,12 @@ pub mod types {
|
|||||||
pub rounding_minutes: Option<u64>,
|
pub rounding_minutes: Option<u64>,
|
||||||
#[serde(rename = "startTime")]
|
#[serde(rename = "startTime")]
|
||||||
pub start_time: Option<String>,
|
pub start_time: Option<String>,
|
||||||
pub start_date: Option<String>,
|
pub start_date: Option<NaiveDate>,
|
||||||
pub tag_ids: Option<Vec<u64>>,
|
pub tag_ids: Option<Vec<u64>>,
|
||||||
pub task_ids: Option<Vec<u64>>,
|
pub task_ids: Option<Vec<u64>>,
|
||||||
pub time_entry_ids: Option<Vec<u64>>,
|
pub time_entry_ids: Option<Vec<u64>>,
|
||||||
pub user_ids: Option<Vec<u64>>,
|
pub user_ids: Option<Vec<u64>>,
|
||||||
|
pub enrich_response: Option<bool>,
|
||||||
|
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub rest: HashMap<String, serde_json::Value>,
|
pub rest: HashMap<String, serde_json::Value>,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user