pub struct PythonProject {
path: PathBuf,
}
Fields§
§path: PathBuf
Implementations§
Source§impl PythonProject
impl PythonProject
Source§impl PythonProject
impl PythonProject
Trait Implementations§
Source§impl Project for PythonProject
impl Project for PythonProject
fn get_version(&self) -> Result<Version>
Source§fn update_version(&self, version: &Version) -> Result<()>
fn update_version(&self, version: &Version) -> Result<()>
Update the version in the project file
Source§fn dry_run_update(&self, version: &Version) -> Result<String>
fn dry_run_update(&self, version: &Version) -> Result<String>
Preview what would be updated without making changes
Source§fn get_file_path(&self) -> &Path
fn get_file_path(&self) -> &Path
Get the path to the main project file
Source§fn get_files_to_commit(&self) -> Vec<PathBuf>
fn get_files_to_commit(&self) -> Vec<PathBuf>
Get all files that should be committed
Source§fn get_package_manager_update_command(&self) -> Option<String>
fn get_package_manager_update_command(&self) -> Option<String>
Get the package manager update command for this project
Auto Trait Implementations§
impl Freeze for PythonProject
impl RefUnwindSafe for PythonProject
impl Send for PythonProject
impl Sync for PythonProject
impl Unpin for PythonProject
impl UnwindSafe for PythonProject
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