Struct puppetfile::Module [] [src]

pub struct Module {
    pub name: String,
    pub info: Vec<ModuleInfo>,
}

The representation of a puppet module

Fields

name

Name of the module

info

More information about the module

Methods

impl Module

fn forge_version(&self, forge_url: &str) -> Result<Version, PuppetfileError>

The current version of the module returned from the forge API

fn version_url(&self, forge_url: &str) -> Result<String, PuppetfileError>

Builds the URL for the forge API for fetching the version

fn user_name_pair(&self) -> Option<(&str, &str)>

Returns user and module name from 'user/mod_name'

fn version(&self) -> Option<&VersionReq>

Returns the version if specified

Trait Implementations

impl Display for Module

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for Module

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Module

fn clone(&self) -> Module

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq for Module

fn eq(&self, __arg_0: &Module) -> bool

fn ne(&self, __arg_0: &Module) -> bool