use serde::{Serialize,Deserialize};
use uuid::Uuid;
use crate::crawling::CrawlType;
use crate::crawling::ExitCode;
use crate::database::id::AgentId;
use crate::time::UtcTimestamp;
use crate::url::UrlWithoutFragment;
#[derive(Clone,Debug,Serialize,Deserialize)]
pub struct CrawlLogEntry {
pub url: UrlWithoutFragment,
pub crawl_type: CrawlType,
pub crawl_uuid: Uuid,
#[serde(skip)]
pub agent_id: AgentId,
pub time_started: UtcTimestamp,
pub time_taken_ms: Option<i64>,
pub exit_code: ExitCode,
pub message: Option<String>,
}