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