pub enum FileEntry {
Directory,
File {
text: String,
},
Symlink {
target: RelativePath,
},
}Expand description
An entry in a portable, root-confined file tree.
Variants§
Directory
A directory.
File
A UTF-8 text file.
Symlink
A symbolic link whose target is confined to the same named mount.
Protocol-v1 discovery rejects unresolved link entries explicitly. Hosts must materialize confined targets into directory and file entries before invoking discovery.
Fields
§
target: RelativePathThe canonical target path under the named mount.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileEntry
impl<'de> Deserialize<'de> for FileEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FileEntry
impl StructuralPartialEq for FileEntry
Auto 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