Struct ComposerJson
pub struct ComposerJson { /* private fields */ }Expand description
Partial practical Composer JSON metadata.
Implementations§
§impl ComposerJson
impl ComposerJson
pub fn new() -> ComposerJson
pub fn with_name(self, name: ComposerPackageName) -> ComposerJson
pub const fn with_package_type( self, package_type: ComposerPackageType, ) -> ComposerJson
pub const fn with_minimum_stability( self, stability: ComposerStability, ) -> ComposerJson
pub fn with_requirement( self, name: &str, requirement: ComposerRequirement, ) -> ComposerJson
pub fn with_script( self, name: ComposerScriptName, script: ComposerScript, ) -> ComposerJson
pub fn with_repository(self, repository: ComposerRepository) -> ComposerJson
pub fn with_autoload(self, autoload: ComposerAutoloadConfig) -> ComposerJson
pub const fn name(&self) -> Option<&ComposerPackageName>
pub const fn package_type(&self) -> Option<ComposerPackageType>
pub const fn minimum_stability(&self) -> Option<ComposerStability>
pub const fn requirements(&self) -> &BTreeMap<String, ComposerRequirement>
pub const fn dev_requirements(&self) -> &BTreeMap<String, ComposerRequirement>
pub const fn autoload(&self) -> Option<&ComposerAutoloadConfig>
Trait Implementations§
§impl Clone for ComposerJson
impl Clone for ComposerJson
§fn clone(&self) -> ComposerJson
fn clone(&self) -> ComposerJson
Returns a duplicate 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§impl Debug for ComposerJson
impl Debug for ComposerJson
§impl Default for ComposerJson
impl Default for ComposerJson
§fn default() -> ComposerJson
fn default() -> ComposerJson
Returns the “default value” for a type. Read more
§impl PartialEq for ComposerJson
impl PartialEq for ComposerJson
impl Eq for ComposerJson
impl StructuralPartialEq for ComposerJson
Auto Trait Implementations§
impl Freeze for ComposerJson
impl RefUnwindSafe for ComposerJson
impl Send for ComposerJson
impl Sync for ComposerJson
impl Unpin for ComposerJson
impl UnsafeUnpin for ComposerJson
impl UnwindSafe for ComposerJson
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