pub struct PackageRelease {Show 14 fields
pub meta: Package,
pub manifest_path: PathBuf,
pub package_root: PathBuf,
pub is_root: bool,
pub config: Config,
pub package_content: Vec<PathBuf>,
pub bin: bool,
pub dependents: Vec<Dependency>,
pub features: Features,
pub initial_version: Version,
pub prior_tag: Option<String>,
pub planned_version: Option<Version>,
pub planned_tag: Option<String>,
pub ensure_owners: bool,
}Fields§
§meta: Package§manifest_path: PathBuf§package_root: PathBuf§is_root: bool§config: Config§package_content: Vec<PathBuf>§bin: bool§dependents: Vec<Dependency>§features: Features§initial_version: Version§prior_tag: Option<String>§planned_version: Option<Version>§planned_tag: Option<String>§ensure_owners: boolImplementations§
Source§impl PackageRelease
impl PackageRelease
pub fn load( args: &ConfigArgs, git_root: &Path, ws_meta: &Metadata, pkg_meta: &Package, ) -> CargoResult<Self>
pub fn set_prior_tag(&mut self, prior_tag: String)
pub fn bump<'s>( &'s mut self, level_or_version: &TargetVersion, metadata: Option<&'s str>, ) -> CargoResult<()>
pub fn plan(&mut self) -> CargoResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PackageRelease
impl RefUnwindSafe for PackageRelease
impl Send for PackageRelease
impl Sync for PackageRelease
impl Unpin for PackageRelease
impl UnwindSafe for PackageRelease
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