Hook up the new deserialization structs
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
use gt_tools::CreateReleaseOption;
|
use gt_tools::CreateReleaseOption;
|
||||||
use gt_tools::{ReleaseInfo, cli::Args};
|
use gt_tools::{ReleaseInfo, cli::Args};
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
@@ -43,7 +44,8 @@ async fn main() -> Result<(), Error> {
|
|||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
println!("{:?}", response.text().await?);
|
let result: gt_tools::CreateResult = response.json().await?;
|
||||||
|
println!("{:?}", result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user