pub struct Project { /* private fields */ }Implementations§
Source§impl Project
impl Project
pub fn new( local_manifest: &Utf8Path, single_package: Option<&str>, overrides: &HashSet<String>, metadata: &Metadata, release_metadata_builder: &dyn ReleaseMetadataBuilder, ) -> Result<Self>
pub fn root(&self) -> &Utf8Path
pub fn publishable_packages(&self) -> Vec<&Package>
Sourcepub fn workspace_packages(&self) -> Vec<&Package>
pub fn workspace_packages(&self) -> Vec<&Package>
Get all packages, including non-publishable.
pub fn git_tag(&self, package_name: &str, version: &str) -> String
pub fn release_name(&self, package_name: &str, version: &str) -> String
pub fn cargo_lock_path(&self) -> Utf8PathBuf
pub fn check_mandatory_fields(&self) -> Result<()>
Trait Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more