pub enum File {
File {
name: Arc<String>,
contents: Vec<u8>,
},
Directory {
name: Arc<String>,
children: Vec<File>,
},
}Available on crate features
sync and write only.Expand description
A file or directory in the compact InputFiles model.
Variants§
Implementations§
Trait Implementations§
impl Eq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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