pub struct File {
pub path: String,
pub kind: Option<FileKind>,
}Expand description
Authored fields of a File.
Fields§
§path: StringPath to the source file, relative to the project root.
kind: Option<FileKind>File category. Inferred from the path extension when absent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileArgs
impl<'de> Deserialize<'de> for FileArgs
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
Auto Trait Implementations§
impl Freeze for FileArgs
impl RefUnwindSafe for FileArgs
impl Send for FileArgs
impl Sync for FileArgs
impl Unpin for FileArgs
impl UnsafeUnpin for FileArgs
impl UnwindSafe for FileArgs
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