pub struct DependencyManager {
pub owner: String,
pub repo: String,
}Expand description
Dependency Manager for scanning and managing dependencies
Fields§
§owner: StringRepository owner
repo: StringRepository name
Implementations§
Source§impl DependencyManager
impl DependencyManager
Sourcepub fn scan_dependencies(&self) -> Result<DependencyScanResult, DependencyError>
pub fn scan_dependencies(&self) -> Result<DependencyScanResult, DependencyError>
Scans the repository for dependencies
Sourcepub fn suggest_updates(
&self,
scan_result: &DependencyScanResult,
) -> Result<Vec<DependencyUpdateSuggestion>, DependencyError>
pub fn suggest_updates( &self, scan_result: &DependencyScanResult, ) -> Result<Vec<DependencyUpdateSuggestion>, DependencyError>
Suggests dependency updates based on scan results
Sourcepub fn create_update_pr(
&self,
suggestions: &[DependencyUpdateSuggestion],
) -> Result<DependencyUpdatePrResult, DependencyError>
pub fn create_update_pr( &self, suggestions: &[DependencyUpdateSuggestion], ) -> Result<DependencyUpdatePrResult, DependencyError>
Creates a PR for dependency updates
Sourcepub fn verify_update(
&self,
_pr_number: u32,
) -> Result<DependencyUpdateVerificationResult, DependencyError>
pub fn verify_update( &self, _pr_number: u32, ) -> Result<DependencyUpdateVerificationResult, DependencyError>
Verifies that dependency updates don’t break builds
Sourcepub fn track_vulnerabilities(
&self,
scan_result: &DependencyScanResult,
) -> Result<VulnerabilityReport, DependencyError>
pub fn track_vulnerabilities( &self, scan_result: &DependencyScanResult, ) -> Result<VulnerabilityReport, DependencyError>
Tracks security vulnerabilities in dependencies
Trait Implementations§
Source§impl Clone for DependencyManager
impl Clone for DependencyManager
Source§fn clone(&self) -> DependencyManager
fn clone(&self) -> DependencyManager
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 DependencyManager
impl RefUnwindSafe for DependencyManager
impl Send for DependencyManager
impl Sync for DependencyManager
impl Unpin for DependencyManager
impl UnwindSafe for DependencyManager
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