more specific rust type

This commit is contained in:
Aiden McClelland
2024-03-18 15:24:20 -06:00
parent 3a3df96996
commit 962e3d8e56

View File

@@ -9,7 +9,7 @@ use clap::builder::ValueParserFactory;
use clap::Parser;
use imbl::OrdMap;
use imbl_value::{json, InternedString};
use models::{ActionId, HealthCheckId, ImageId, InvalidId, PackageId};
use models::{ActionId, HealthCheckId, ImageId, PackageId, VolumeId};
use patch_db::json_ptr::JsonPointer;
use rpc_toolkit::{from_fn, from_fn_async, AnyContext, Context, Empty, HandlerExt, ParentHandler};
use serde::{Deserialize, Serialize};
@@ -315,8 +315,9 @@ struct ReverseProxyParams {
struct MountTarget {
#[ts(type = "string")]
package_id: PackageId,
volume_id: String,
subpath: Option<String>,
#[ts(type = "string")]
volume_id: VolumeId,
subpath: Option<PathBuf>,
readonly: bool,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, TS)]