diff --git a/src/storage/file_id.rs b/src/storage/file_id.rs index 03e507e0..5d3ebb7e 100644 --- a/src/storage/file_id.rs +++ b/src/storage/file_id.rs @@ -18,6 +18,19 @@ pub enum FileIDType { UUID, } +impl Into for FileIDType { + + fn into(self) -> String { + let s = match self { + FileIDType::UUID => "UUID", + FileIDType::NONE => "", + }; + + String::from(s) + } + +} + #[derive(Clone)] pub struct FileID { id: Option,