Struct oro_common::ManifestBuilder
source · pub struct ManifestBuilder { /* private fields */ }Expand description
Builder for Manifest.
Implementations§
source§impl ManifestBuilder
impl ManifestBuilder
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn version(&mut self, value: Version) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn homepage<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn license<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn bugs(&mut self, value: Bugs) -> &mut Self
pub fn keywords(&mut self, value: Vec<String>) -> &mut Self
pub fn bin(&mut self, value: Bin) -> &mut Self
pub fn contributors(&mut self, value: Vec<PersonField>) -> &mut Self
pub fn files(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn main<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn man(&mut self, value: Man) -> &mut Self
pub fn directories(&mut self, value: Option<Directories>) -> &mut Self
pub fn module_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn exports(&mut self, value: Exports) -> &mut Self
pub fn imports(&mut self, value: Imports) -> &mut Self
pub fn repository(&mut self, value: Repository) -> &mut Self
pub fn scripts(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn config(&mut self, value: Value) -> &mut Self
pub fn engines(&mut self, value: HashMap<String, Range>) -> &mut Self
pub fn os(&mut self, value: Vec<String>) -> &mut Self
pub fn cpu(&mut self, value: Vec<String>) -> &mut Self
pub fn private(&mut self, value: bool) -> &mut Self
pub fn publish_config(&mut self, value: HashMap<String, Value>) -> &mut Self
pub fn dependencies(&mut self, value: BTreeMap<String, String>) -> &mut Self
pub fn dev_dependencies(&mut self, value: BTreeMap<String, String>) -> &mut Self
pub fn optional_dependencies( &mut self, value: BTreeMap<String, String> ) -> &mut Self
pub fn peer_dependencies( &mut self, value: BTreeMap<String, String> ) -> &mut Self
pub fn bundled_dependencies(&mut self, value: Vec<String>) -> &mut Self
pub fn workspaces(&mut self, value: Vec<String>) -> &mut Self
pub fn _rest(&mut self, value: HashMap<String, Value>) -> &mut Self
Trait Implementations§
source§impl Clone for ManifestBuilder
impl Clone for ManifestBuilder
source§fn clone(&self) -> ManifestBuilder
fn clone(&self) -> ManifestBuilder
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 more