Struct napi::NodeVersion
source · pub struct NodeVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub release: &'static str,
}
Fields§
§major: u32
§minor: u32
§patch: u32
§release: &'static str
Trait Implementations§
source§impl Clone for NodeVersion
impl Clone for NodeVersion
source§fn clone(&self) -> NodeVersion
fn clone(&self) -> NodeVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NodeVersion
impl Debug for NodeVersion
source§impl TryFrom<napi_node_version> for NodeVersion
impl TryFrom<napi_node_version> for NodeVersion
source§fn try_from(value: napi_node_version) -> Result<NodeVersion, Error>
fn try_from(value: napi_node_version) -> Result<NodeVersion, Error>
Performs the conversion.