pub type Result<T, E = ToEventError> = std::result::Result<T, E>;
#[derive(thiserror::Error, Debug)]
pub enum ToEventError {
#[error("X-Hub-Signature-256 header is invalid")]
InvalidSignature(#[from] hex::FromHexError),
#[error("Failed to parse payload, type: {r#type}")]
InvalidEventType { r#type: String },
#[error("Failed to parse the payload into `github::Event`")]
ParseFailed,
#[error("Failed to verify the signature")]
VerifySignatureFailed,
}