Commit 3a92c8af authored by Ben Boeckel's avatar Ben Boeckel
Browse files

webhooks: add an AsRef<DateTime<UTC>> for the HookDate hack

parent 429ad8d7
......@@ -42,6 +42,12 @@ impl Deserialize for HookDate {
}
}
impl AsRef<DateTime<UTC>> for HookDate {
fn as_ref(&self) -> &DateTime<UTC> {
&self.0
}
}
#[derive(Serialize, Deserialize, Debug)]
/// Project information exposed in hooks.
pub struct ProjectHookAttrs {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment