aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/repository_interface.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-20 08:33:49 +0900
committernsfisis <nsfisis@gmail.com>2026-05-20 08:33:57 +0900
commitf31b101ce1e921a026ba234b1f0a83b0392bc118 (patch)
treeb7ac2aa84d71ebd162cc21aeab0240e7e0544988 /crates/shirabe/src/repository/repository_interface.rs
parent5e31fa33c3b5cf726a57a063b8e7a070869250fe (diff)
downloadphp-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.tar.gz
php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.tar.zst
php-shirabe-f31b101ce1e921a026ba234b1f0a83b0392bc118.zip
fix(compile): fix all remaining compile errors
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/repository/repository_interface.rs')
-rw-r--r--crates/shirabe/src/repository/repository_interface.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/shirabe/src/repository/repository_interface.rs b/crates/shirabe/src/repository/repository_interface.rs
index 6113997..de37b5f 100644
--- a/crates/shirabe/src/repository/repository_interface.rs
+++ b/crates/shirabe/src/repository/repository_interface.rs
@@ -26,11 +26,13 @@ pub struct LoadPackagesResult {
pub packages: Vec<Box<dyn BasePackage>>,
}
+#[derive(Debug, Clone)]
pub enum AbandonedInfo {
Replacement(String),
Abandoned,
}
+#[derive(Debug, Clone)]
pub struct SearchResult {
pub name: String,
pub description: Option<String>,
@@ -38,6 +40,7 @@ pub struct SearchResult {
pub url: Option<String>,
}
+#[derive(Debug, Clone)]
pub struct ProviderInfo {
pub name: String,
pub description: Option<String>,
@@ -83,6 +86,13 @@ pub trait RepositoryInterface: Countable + std::fmt::Debug {
None
}
+ fn as_installed_repository_interface(
+ &self,
+ ) -> Option<&dyn crate::repository::installed_repository_interface::InstalledRepositoryInterface>
+ {
+ None
+ }
+
fn as_any(&self) -> &dyn std::any::Any;
fn clone_box(&self) -> Box<dyn RepositoryInterface> {