file_storage/path/convert/deref.rs
1use crate::{FilePath, FolderPath, StoragePath};
2use std::ops::Deref;
3
4impl Deref for FilePath {
5 type Target = StoragePath;
6
7 fn deref(&self) -> &StoragePath {
8 self.path()
9 }
10}
11
12impl Deref for FolderPath {
13 type Target = StoragePath;
14
15 fn deref(&self) -> &StoragePath {
16 self.path()
17 }
18}