Struct hubcaps::hooks::HookCreateOptionsBuilder
[−]
[src]
pub struct HookCreateOptionsBuilder { /* fields omitted */ }
Methods
impl HookCreateOptionsBuilder
[src]
fn new<N>(name: N) -> HookCreateOptionsBuilder where
N: Into<String>,
N: Into<String>,
fn active(&mut self, active: bool) -> &mut Self
fn events<E>(&mut self, events: Vec<E>) -> &mut Self where
E: Into<String>,
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>,
U: Into<String>,
web hooks must have an associated url
fn content_type(&mut self, content_type: WebHookContentType) -> &mut Self
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>,
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>,
K: Into<String>,
V: Into<String>,
fn config_entry<N>(&mut self, name: N, value: Value) -> &mut Self where
N: Into<String>,
N: Into<String>,
fn build(&self) -> HookCreateOptions
Trait Implementations
impl Default for HookCreateOptionsBuilder
[src]
fn default() -> HookCreateOptionsBuilder
Returns the "default value" for a type. Read more