pub struct CreateHookOption {
pub active: Option<bool>,
pub authorization_header: Option<String>,
pub branch_filter: Option<String>,
pub config: HashMap<String, String>,
pub events: Option<Vec<String>>,
pub type: Type,
}
Expand description
CreateHookOption : CreateHookOption options when create a hook
Fields§
§active: Option<bool>
§branch_filter: Option<String>
§config: HashMap<String, String>
CreateHookOptionConfig has all config options in it required are "content_type" and "url" Required
events: Option<Vec<String>>
§type: Type
Implementations§
Trait Implementations§
Source§impl Clone for CreateHookOption
impl Clone for CreateHookOption
Source§fn clone(&self) -> CreateHookOption
fn clone(&self) -> CreateHookOption
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateHookOption
impl Debug for CreateHookOption
Source§impl Default for CreateHookOption
impl Default for CreateHookOption
Source§fn default() -> CreateHookOption
fn default() -> CreateHookOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateHookOption
impl<'de> Deserialize<'de> for CreateHookOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateHookOption
impl PartialEq for CreateHookOption
Source§impl Serialize for CreateHookOption
impl Serialize for CreateHookOption
impl StructuralPartialEq for CreateHookOption
Auto Trait Implementations§
impl Freeze for CreateHookOption
impl RefUnwindSafe for CreateHookOption
impl Send for CreateHookOption
impl Sync for CreateHookOption
impl Unpin for CreateHookOption
impl UnwindSafe for CreateHookOption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more