pub enum SerializerNode {
Directory {
name: String,
entries: Vec<SerializerNode>,
},
File {
name: String,
data: Vec<u8>,
},
Symlink {
name: String,
target: Vec<u8>,
},
}Expand description
A node in the tree to be serialized.
Variants§
Directory
A directory with node children.
File
A file with byte contents.
Symlink
A symlink pointing to a target.
Implementations§
Trait Implementations§
Source§impl Clone for SerializerNode
impl Clone for SerializerNode
Auto Trait Implementations§
impl Freeze for SerializerNode
impl RefUnwindSafe for SerializerNode
impl Send for SerializerNode
impl Sync for SerializerNode
impl Unpin for SerializerNode
impl UnsafeUnpin for SerializerNode
impl UnwindSafe for SerializerNode
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