@@ -20,7 +20,7 @@ pub(crate) mod ser {
2020 use crate :: activity_flyio:: fly_http:: regions:: Region ;
2121 use crate :: exports:: activity_flyio:: fly_http:: machines:: {
2222 CpuKind , ExecResponse , GuestConfig , HostStatus , InitConfig , Machine , MachineConfig ,
23- MachineRestart , RestartPolicy , StopConfig ,
23+ MachineRestart , Mount , RestartPolicy , StopConfig ,
2424 } ;
2525 use serde:: de:: DeserializeOwned ;
2626 use serde:: { Deserialize , Serialize } ;
@@ -77,6 +77,7 @@ pub(crate) mod ser {
7777 env : Option < HashMap < String , String > > ,
7878 restart : Option < MachineRestartSer > ,
7979 stop_config : Option < StopConfigSer > ,
80+ mounts : Option < Vec < Mount > > ,
8081 }
8182
8283 #[ derive( Serialize , Deserialize , Debug ) ]
@@ -160,6 +161,12 @@ pub(crate) mod ser {
160161 timeout : Option < u64 > ,
161162 }
162163
164+ #[ derive( Serialize , Deserialize , Debug ) ]
165+ pub ( crate ) struct MountSer {
166+ volume : String ,
167+ path : String ,
168+ }
169+
163170 #[ derive( Deserialize ) ]
164171 pub ( crate ) struct MachineCreateResponseSer {
165172 pub ( crate ) id : String ,
@@ -306,6 +313,7 @@ pub(crate) mod ser {
306313 restart,
307314 init,
308315 stop_config,
316+ mounts : wit. mounts ,
309317 }
310318 }
311319 }
@@ -353,6 +361,7 @@ pub(crate) mod ser {
353361 restart,
354362 init,
355363 stop_config,
364+ mounts : ser. mounts ,
356365 }
357366 }
358367 }
0 commit comments