use rust_shared::repository::model::*;

/// Implement Searchable for SourceLink to work with our pagination
impl crate::util::pagination::Searchable for SourceLink {
    fn matches_query(&self, query: &str) -> bool {
        self.name.to_lowercase().contains(query) ||
        self.value.to_lowercase().contains(query)
    }
}