pub struct PyProject { /* private fields */ }Expand description
Partial pyproject.toml metadata.
Implementations§
Source§impl PyProject
impl PyProject
Sourcepub fn with_build_system(self, build_system: PyProjectBuildSystem) -> Self
pub fn with_build_system(self, build_system: PyProjectBuildSystem) -> Self
Adds build-system metadata.
Sourcepub fn with_project(self, project: PyProjectProjectMetadata) -> Self
pub fn with_project(self, project: PyProjectProjectMetadata) -> Self
Adds project metadata.
Sourcepub fn with_tool_section(self, section: PyProjectToolSection) -> Self
pub fn with_tool_section(self, section: PyProjectToolSection) -> Self
Adds a tool section label.
Sourcepub fn project_name(&self) -> Option<&str>
pub fn project_name(&self) -> Option<&str>
Returns the project name when present.
Sourcepub fn project_version(&self) -> Option<&str>
pub fn project_version(&self) -> Option<&str>
Returns the project version when present.
Sourcepub fn dependencies(&self) -> &[PyProjectDependency]
pub fn dependencies(&self) -> &[PyProjectDependency]
Returns declared dependencies when project metadata is present.
Sourcepub fn optional_dependency_groups(&self) -> &[PyProjectOptionalDependencyGroup]
pub fn optional_dependency_groups(&self) -> &[PyProjectOptionalDependencyGroup]
Returns optional dependency group labels when present.
Sourcepub fn scripts(&self) -> &[PyProjectScript]
pub fn scripts(&self) -> &[PyProjectScript]
Returns script labels when present.
Sourcepub fn build_backend(&self) -> Option<&PyProjectBuildBackend>
pub fn build_backend(&self) -> Option<&PyProjectBuildBackend>
Returns the build backend when present.
Sourcepub fn tool_sections(&self) -> &[PyProjectToolSection]
pub fn tool_sections(&self) -> &[PyProjectToolSection]
Returns tool section labels.
Trait Implementations§
impl Eq for PyProject
impl StructuralPartialEq for PyProject
Auto Trait Implementations§
impl Freeze for PyProject
impl RefUnwindSafe for PyProject
impl Send for PyProject
impl Sync for PyProject
impl Unpin for PyProject
impl UnsafeUnpin for PyProject
impl UnwindSafe for PyProject
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