pub enum Project {
Workspace(Box<dyn Workspace>),
Package(Box<dyn Package>),
}Variants§
Implementations§
Source§impl Project
impl Project
pub fn name(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
pub fn path(&self) -> &Path
pub fn relative_path(&self) -> &Path
pub async fn update_version(&mut self, update_type: UpdateType) -> Result<()>
pub fn check_changed(&mut self, path: &Path) -> Result<()>
pub fn is_changed(&self) -> bool
pub fn dependencies(&self) -> &HashSet<String>
pub fn add_dependency(&mut self, dependency: &str)
pub fn language(&self) -> Language
pub async fn publish(&self, config: &Config) -> Result<()>
Trait Implementations§
Source§impl Ord for Project
impl Ord for Project
Source§impl PartialOrd for Project
impl PartialOrd for Project
impl Eq for Project
Auto Trait Implementations§
impl Freeze for Project
impl !RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl !UnwindSafe for Project
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