Commit 67588381 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

hooks: add missing docstrings

parent 032f6d6e
......@@ -6,6 +6,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Hook structures
//! Hooks are received from Gitlab when registered as a system or web hook listener.
//! Gitlab does not have consistent structures for its hooks, so they often change from
//! version to version.
extern crate serde;
use self::serde::{Deserialize, Deserializer};
use self::serde::de::Error;
......@@ -17,8 +24,11 @@ use super::systemhooks::SystemHook;
use super::webhooks::WebHook;
#[derive(Debug, Clone)]
/// A deserializable structure for all Gitlab hooks.
pub enum GitlabHook {
/// A system hook.
/// A web hook from a specific project.
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