Add ListExtractor
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user