file_storage/path/core/
display.rs1use crate::{FilePath, FolderPath, StoragePath};
2use std::fmt::{Display, Formatter};
3
4impl Display for StoragePath {
5 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
6 write!(f, "{}", self.path())
7 }
8}
9
10impl Display for FilePath {
11 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
12 write!(f, "{}", self.path())
13 }
14}
15
16impl Display for FolderPath {
17 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
18 write!(f, "{}", self.path())
19 }
20}