pub struct File {
pub path: Utf8PathBuf,
pub hashes: Option<Hashes>,
pub license: Option<String>,
pub attributions: Vec<String>,
pub natures: Vec<String>,
}
Expand description
A single file that was crawled when the definition was harvested
Fields§
§path: Utf8PathBuf
The relative path of the file
hashes: Option<Hashes>
The hash information for the file when it was harvested
license: Option<String>
The license that was discovered for the file
attributions: Vec<String>
Attributions discovered for the file
natures: Vec<String>
“Natures” determined for the file. Unsure how many of them there are
but in practice I have only seen license
so this should probably be
made into an enum at some point
Trait Implementations§
Source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
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 File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin 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