@@ -8,13 +8,12 @@ use clap::{Arg, ArgMatches, Command};
88use console:: style;
99use log:: { debug, info, warn} ;
1010use objectstore_client:: { ClientBuilder , ExpirationPolicy , Usecase } ;
11- use serde:: { Deserialize , Serialize } ;
1211use sha2:: { Digest as _, Sha256 } ;
1312use walkdir:: WalkDir ;
1413
1514use secrecy:: ExposeSecret as _;
1615
17- use crate :: api:: Api ;
16+ use crate :: api:: { Api , CreateSnapshotResponse , ImageMetadata , SnapshotsManifest } ;
1817use crate :: config:: { Auth , Config } ;
1918use crate :: utils:: args:: ArgExt as _;
2019
@@ -47,28 +46,6 @@ pub fn make_command(command: Command) -> Command {
4746 )
4847}
4948
50- #[ derive( Deserialize ) ]
51- #[ serde( rename_all = "camelCase" ) ]
52- struct CreateSnapshotResponse {
53- artifact_id : String ,
54- image_count : u64 ,
55- }
56-
57- // Keep in sync with https://github.com/getsentry/sentry/blob/master/src/sentry/preprod/snapshots/manifest.py
58- #[ derive( Serialize ) ]
59- struct SnapshotsManifest {
60- app_id : String ,
61- images : HashMap < String , ImageMetadata > ,
62- }
63-
64- // Keep in sync with https://github.com/getsentry/sentry/blob/master/src/sentry/preprod/snapshots/manifest.py
65- #[ derive( Serialize ) ]
66- struct ImageMetadata {
67- image_file_name : String ,
68- width : u32 ,
69- height : u32 ,
70- }
71-
7249struct ImageInfo {
7350 path : std:: path:: PathBuf ,
7451 relative_path : String ,
0 commit comments