pub mod drive_id { use lazy_static::lazy_static; use serde::{Deserialize, Serialize}; lazy_static! { pub static ref ROOT_ID: DriveId = DriveId(String::from("root")); } #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct DriveId(pub String); impl From for DriveId where T: Into, { fn from(s: T) -> Self { DriveId(s.into()) } } impl AsRef for DriveId { fn as_ref(&self) -> &str { &self.0 } } }