pub struct TestOnlyDependency {
pub package_name: String,
pub path: PathBuf,
pub line: u32,
}Expand description
A production dependency that is only imported by test files. Since it is never used in production code, it could be moved to devDependencies.
Fields§
§package_name: StringProduction dependency that is only imported by test files, consider moving to devDependencies.
path: PathBufPath to the package.json where the dependency is listed.
line: u321-based line number of the dependency entry in package.json.
Trait Implementations§
Source§impl Clone for TestOnlyDependency
impl Clone for TestOnlyDependency
Source§impl Debug for TestOnlyDependency
impl Debug for TestOnlyDependency
Source§impl<'de> Deserialize<'de> for TestOnlyDependency
impl<'de> Deserialize<'de> for TestOnlyDependency
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 TestOnlyDependency
impl RefUnwindSafe for TestOnlyDependency
impl Send for TestOnlyDependency
impl Sync for TestOnlyDependency
impl Unpin for TestOnlyDependency
impl UnsafeUnpin for TestOnlyDependency
impl UnwindSafe for TestOnlyDependency
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