pub struct FileEntry {
pub rel_path: String,
pub full_canonical_path: PathBuf,
}Expand description
A file discovered while walking the assets folder.
rel_path is the path of the file relative to the folder root, always using
/ as the separator and always satisfying [is_valid_key].
full_canonical_path is the absolute, symlink-resolved path of the file and
is guaranteed to live inside the canonical folder root. Entries whose target
escapes the folder (for example a symlink pointing at /etc/passwd) are
skipped, so callers never embed or serve files outside the folder.
Fields§
§rel_path: String§full_canonical_path: PathBufAuto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
impl UnwindSafe for FileEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more