pub struct SearchOutput {
pub output: CommandOutput,
pub repositories: Vec<RepositoryInfo>,
}
Expand description
Output from a search command execution
Contains the raw output from the Docker search command and provides convenience methods for parsing and filtering results.
Fields§
§output: CommandOutput
Raw output from the Docker command
repositories: Vec<RepositoryInfo>
Parsed repository information
Implementations§
Source§impl SearchOutput
impl SearchOutput
Sourcepub fn repository_count(&self) -> usize
pub fn repository_count(&self) -> usize
Returns the number of repositories found
Sourcepub fn repository_names(&self) -> Vec<&str>
pub fn repository_names(&self) -> Vec<&str>
Returns repository names
Sourcepub fn filter_by_stars(&self, min_stars: u32) -> Vec<&RepositoryInfo>
pub fn filter_by_stars(&self, min_stars: u32) -> Vec<&RepositoryInfo>
Filters repositories by minimum stars
Sourcepub fn official_repositories(&self) -> Vec<&RepositoryInfo>
pub fn official_repositories(&self) -> Vec<&RepositoryInfo>
Gets only official repositories
Sourcepub fn automated_repositories(&self) -> Vec<&RepositoryInfo>
pub fn automated_repositories(&self) -> Vec<&RepositoryInfo>
Gets only automated repositories
Sourcepub fn most_popular(&self) -> Option<&RepositoryInfo>
pub fn most_popular(&self) -> Option<&RepositoryInfo>
Gets the most popular repository (by stars)
Trait Implementations§
Source§impl Clone for SearchOutput
impl Clone for SearchOutput
Source§fn clone(&self) -> SearchOutput
fn clone(&self) -> SearchOutput
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 SearchOutput
impl RefUnwindSafe for SearchOutput
impl Send for SearchOutput
impl Sync for SearchOutput
impl Unpin for SearchOutput
impl UnwindSafe for SearchOutput
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