[][src]Struct tows::node_module::NodeModule

pub struct NodeModule {
    pub type: NodeModuleType,
    pub name: String,
    pub version: String,
    pub path: PathBuf,
    pub selected: Cell<bool>,
}

A NodeJS module

Fields

type: NodeModuleTypename: Stringversion: Stringpath: PathBufselected: Cell<bool>

Methods

impl NodeModule[src]

pub fn new_production(name: String, version: String, path: PathBuf) -> Self[src]

pub fn new_development(name: String, version: String, path: PathBuf) -> Self[src]

pub fn new_peer(name: String, version: String, path: PathBuf) -> Self[src]

Trait Implementations

impl Debug for NodeModule[src]

impl Default for NodeModule[src]

impl Eq for NodeModule[src]

impl Ord for NodeModule[src]

impl PartialEq<NodeModule> for NodeModule[src]

impl PartialOrd<NodeModule> for NodeModule[src]

impl StructuralEq for NodeModule[src]

impl StructuralPartialEq for NodeModule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.