Add ListExtractor

This commit is contained in:
2026-03-10 20:24:56 -07:00
parent 280bbcb83e
commit 48ac93c78e
22 changed files with 386 additions and 93 deletions

View File

@@ -2,7 +2,7 @@ use pile_config::Label;
use std::{collections::HashMap, io::BufReader, sync::OnceLock};
use tracing::debug;
use crate::{Item, PileValue, SyncReadBridge, extract::Extractor};
use crate::{Item, PileValue, SyncReadBridge, extract::ObjectExtractor};
pub struct ExifExtractor<'a> {
item: &'a Item,
@@ -78,7 +78,7 @@ fn tag_to_label(tag: &str) -> Option<Label> {
}
#[async_trait::async_trait]
impl Extractor for ExifExtractor<'_> {
impl ObjectExtractor for ExifExtractor<'_> {
async fn field<'a>(
&'a self,
name: &Label,