pub struct UpdateRequest { /* private fields */ }Implementations§
Source§impl UpdateRequest
impl UpdateRequest
pub fn new(metadata: Metadata) -> Result<Self>
pub fn changelog_path(&self, package: &Package) -> Utf8PathBuf
pub fn git_client(&self) -> Result<Option<GitClient>>
pub fn cargo_metadata(&self) -> &Metadata
pub fn set_local_manifest( self, local_manifest: impl AsRef<Path>, ) -> Result<Self>
pub fn with_git_client(self, git: GitBackend) -> Self
pub fn with_registry_manifest_path( self, registry_manifest: &Utf8Path, ) -> Result<Self>
pub fn with_changelog_req(self, changelog_req: ChangelogRequest) -> Self
Sourcepub fn with_default_package_config(self, config: UpdateConfig) -> Self
pub fn with_default_package_config(self, config: UpdateConfig) -> Self
Set update config for all packages.
Sourcepub fn with_package_config(
self,
package: impl Into<String>,
config: PackageUpdateConfig,
) -> Self
pub fn with_package_config( self, package: impl Into<String>, config: PackageUpdateConfig, ) -> Self
Set update config for a specific package.
pub fn get_package_config(&self, package: &str) -> PackageUpdateConfig
pub fn with_registry(self, registry: String) -> Self
pub fn with_single_package(self, package: String) -> Self
pub fn with_repo_url(self, repo_url: RepoUrl) -> Self
pub fn with_release_commits(self, release_commits: &str) -> Result<Self>
pub fn local_manifest_dir(&self) -> Result<&Utf8Path>
pub fn local_manifest(&self) -> &Utf8Path
pub fn registry_manifest(&self) -> Option<&Utf8Path>
pub fn with_dependencies_update(self, dependencies_update: bool) -> Self
pub fn should_update_dependencies(&self) -> bool
pub fn with_allow_dirty(self, allow_dirty: bool) -> Self
pub fn repo_url(&self) -> Option<&RepoUrl>
Trait Implementations§
Source§impl Clone for UpdateRequest
impl Clone for UpdateRequest
Source§fn clone(&self) -> UpdateRequest
fn clone(&self) -> UpdateRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateRequest
impl Debug for UpdateRequest
Source§impl ReleaseMetadataBuilder for UpdateRequest
impl ReleaseMetadataBuilder for UpdateRequest
fn get_release_metadata(&self, package_name: &str) -> Option<ReleaseMetadata>
Auto Trait Implementations§
impl Freeze for UpdateRequest
impl RefUnwindSafe for UpdateRequest
impl Send for UpdateRequest
impl Sync for UpdateRequest
impl Unpin for UpdateRequest
impl UnwindSafe for UpdateRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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