Struct hubcaps::hooks::HookEditOptionsBuilder
[−]
[src]
pub struct HookEditOptionsBuilder(_);
Methods
impl HookEditOptionsBuilder
[src]
fn new() -> HookEditOptionsBuilder
[src]
fn active(&mut self, active: bool) -> &mut Self
[src]
fn events<E>(&mut self, events: Vec<E>) -> &mut Self where
E: Into<String>,
[src]
E: Into<String>,
a list of github events this hook should receive deliveries for the default is "push". for a full list, see the Github api docs
fn url<U>(&mut self, url: U) -> &mut Self where
U: Into<String>,
[src]
U: Into<String>,
web hooks must have an associated url
fn content_type(&mut self, content_type: WebHookContentType) -> &mut Self
[src]
web hooks can optionally specify a content_type of "form" or "json" which indicates the type of payload they will expect to receive
fn secret<S>(&mut self, sec: S) -> &mut Self where
S: Into<String>,
[src]
S: Into<String>,
web hooks can optionally provide a secret used to sign deliveries to identify that their source was indeed github
fn config_str_entry<K, V>(&mut self, k: K, v: V) -> &mut Self where
K: Into<String>,
V: Into<String>,
[src]
K: Into<String>,
V: Into<String>,
fn config_entry<N>(&mut self, name: N, value: Value) -> &mut Self where
N: Into<String>,
[src]
N: Into<String>,