pub struct DependencyOperations;Expand description
Dependency operations handler
Implementations§
Source§impl DependencyOperations
impl DependencyOperations
Sourcepub fn verify_build_compatibility(
_dependencies: &[DependencyUpdateSuggestion],
) -> Result<BuildVerificationResult, DependencyError>
pub fn verify_build_compatibility( _dependencies: &[DependencyUpdateSuggestion], ) -> Result<BuildVerificationResult, DependencyError>
Verifies that a dependency update doesn’t break the build
Sourcepub fn apply_pinning(
dependencies: &[Dependency],
config: &PinningConfig,
) -> Result<DependencyPinningResult, DependencyError>
pub fn apply_pinning( dependencies: &[Dependency], config: &PinningConfig, ) -> Result<DependencyPinningResult, DependencyError>
Applies dependency pinning configuration
Sourcepub fn generate_security_report(
dependencies: &[Dependency],
) -> Result<SecurityReport, DependencyError>
pub fn generate_security_report( dependencies: &[Dependency], ) -> Result<SecurityReport, DependencyError>
Generates a security report for dependencies
Sourcepub fn is_update_safe(
_current_version: &str,
_new_version: &str,
vulnerabilities_count: usize,
) -> Result<bool, DependencyError>
pub fn is_update_safe( _current_version: &str, _new_version: &str, vulnerabilities_count: usize, ) -> Result<bool, DependencyError>
Checks if a dependency update is safe
Sourcepub fn generate_recommendations(
dependencies: &[Dependency],
) -> Result<Vec<UpdateRecommendation>, DependencyError>
pub fn generate_recommendations( dependencies: &[Dependency], ) -> Result<Vec<UpdateRecommendation>, DependencyError>
Generates update recommendations
Trait Implementations§
Source§impl Clone for DependencyOperations
impl Clone for DependencyOperations
Source§fn clone(&self) -> DependencyOperations
fn clone(&self) -> DependencyOperations
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DependencyOperations
impl RefUnwindSafe for DependencyOperations
impl Send for DependencyOperations
impl Sync for DependencyOperations
impl Unpin for DependencyOperations
impl UnwindSafe for DependencyOperations
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§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