use crate::error::Error;
use crate::serde::{Deserialize, Serialize};
use crate::typetag;
use crate::DataSource;
use std::str;

/// this is a dummy data source
/// it provides the next item in
/// the vector until it is exhausted
/// this is mostly useful to supply dummy data
/// to logfile structs
#[derive(Clone, Serialize, Deserialize)]
pub struct InMemoryDataSource {
    data: Vec<String>,
}