use laravel::event::Event;
use crate::result::SubmissionResult;
/// The endpoint accepted a request.
#[derive(Debug, Clone, Event)]
pub struct UrlsSubmitted {
/// The host, the URLs, the status code and a message written to be read by a human.
pub result: SubmissionResult,
}
/// A request failed: rejected for good, or about to be retried.
#[derive(Debug, Clone, Event)]
pub struct SubmissionFailed {
/// The host, the URLs, the status code and a message written to be read by a human.
pub result: SubmissionResult,
/// The error behind a failure that will be retried.
pub error: Option<String>,
}