pub enum FileRole {
MainBinary {
binary_name: String,
},
AdditionalBinary {
binary_name: String,
},
LibraryRoot,
FrontendLibrary {
framework: String,
},
IntegrationTest {
test_name: String,
},
Benchmark {
bench_name: String,
},
Example {
example_name: String,
},
BuildScript,
Module,
Standalone,
}
Expand description
Role of the specific file in the project
Variants§
MainBinary
Main binary entry point
AdditionalBinary
Additional binary in bin/
LibraryRoot
Library root (lib.rs)
FrontendLibrary
Frontend library in web framework
IntegrationTest
Integration test
Benchmark
Benchmark file
Example
Example file
BuildScript
Build script
Module
Regular module
Standalone
Standalone file
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileRole
impl<'de> Deserialize<'de> for FileRole
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 StructuralPartialEq for FileRole
Auto Trait Implementations§
impl Freeze for FileRole
impl RefUnwindSafe for FileRole
impl Send for FileRole
impl Sync for FileRole
impl Unpin for FileRole
impl UnwindSafe for FileRole
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