pub struct Package<'p> { /* private fields */ }Expand description
The package information.
Implementations§
Source§impl<'p> Package<'p>
impl<'p> Package<'p>
Sourcepub fn version(&self) -> Option<WorkspaceInheritable<&str>>
pub fn version(&self) -> Option<WorkspaceInheritable<&str>>
The package version.
Sourcepub fn edition(&self) -> Option<&WorkspaceInheritable<RustEdition>>
pub fn edition(&self) -> Option<&WorkspaceInheritable<RustEdition>>
The Rust edition.
Sourcepub fn rust_version(&self) -> Option<WorkspaceInheritable<&str>>
pub fn rust_version(&self) -> Option<WorkspaceInheritable<&str>>
The required Rust version.
The list of authors.
Sourcepub fn description(&self) -> Option<WorkspaceInheritable<&str>>
pub fn description(&self) -> Option<WorkspaceInheritable<&str>>
The package description.
Sourcepub fn documentation(&self) -> Option<WorkspaceInheritable<&str>>
pub fn documentation(&self) -> Option<WorkspaceInheritable<&str>>
The package documentation URL.
Sourcepub fn readme(&self) -> Option<WorkspaceInheritable<&str>>
pub fn readme(&self) -> Option<WorkspaceInheritable<&str>>
The path to the README file.
Sourcepub fn homepage(&self) -> Option<WorkspaceInheritable<&str>>
pub fn homepage(&self) -> Option<WorkspaceInheritable<&str>>
The package homepage URL.
Sourcepub fn repository(&self) -> Option<WorkspaceInheritable<&str>>
pub fn repository(&self) -> Option<WorkspaceInheritable<&str>>
The package repository URL.
Sourcepub fn license(&self) -> Option<WorkspaceInheritable<&str>>
pub fn license(&self) -> Option<WorkspaceInheritable<&str>>
The package license.
Sourcepub fn license_file(&self) -> Option<WorkspaceInheritable<&str>>
pub fn license_file(&self) -> Option<WorkspaceInheritable<&str>>
The path to the license file.
Sourcepub fn keywords(
&self,
) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
pub fn keywords( &self, ) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
The package keywords.
Sourcepub fn categories(
&self,
) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
pub fn categories( &self, ) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
The package categories.
Sourcepub fn publish(&self) -> Option<WorkspaceInheritable<bool>>
pub fn publish(&self) -> Option<WorkspaceInheritable<bool>>
Whether the package should be published.
Sourcepub fn include(
&self,
) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
pub fn include( &self, ) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
The paths to include.
Sourcepub fn exclude(
&self,
) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
pub fn exclude( &self, ) -> Option<WorkspaceInheritable<impl Iterator<Item = &str>>>
The paths to exclude.
Sourcepub fn default_run(&self) -> Option<&str>
pub fn default_run(&self) -> Option<&str>
The default run command.
Sourcepub fn autoexamples(&self) -> Option<bool>
pub fn autoexamples(&self) -> Option<bool>
Whether to automatically build examples.
Sourcepub fn autobenches(&self) -> Option<bool>
pub fn autobenches(&self) -> Option<bool>
Whether to automatically build benchmarks.
Sourcepub fn resolver(&self) -> Option<ResolverVersion>
pub fn resolver(&self) -> Option<ResolverVersion>
The resolver version.
Trait Implementations§
Source§impl<'de: 'p, 'p> Deserialize<'de> for Package<'p>
impl<'de: 'p, 'p> Deserialize<'de> for Package<'p>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'p> StructuralPartialEq for Package<'p>
Auto Trait Implementations§
impl<'p> Freeze for Package<'p>
impl<'p> RefUnwindSafe for Package<'p>
impl<'p> Send for Package<'p>
impl<'p> Sync for Package<'p>
impl<'p> Unpin for Package<'p>
impl<'p> UnwindSafe for Package<'p>
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