pub struct Hook {
pub active: Option<bool>,
pub authorization_header: Option<String>,
pub branch_filter: Option<String>,
pub config: Option<BTreeMap<String, String>>,
pub content_type: Option<String>,
pub created_at: Option<OffsetDateTime>,
pub events: Option<Vec<String>>,
pub id: Option<i64>,
pub metadata: Option<Value>,
pub type: Option<String>,
pub updated_at: Option<OffsetDateTime>,
pub url: Option<Url>,
}Expand description
Hook a hook is a web hook when one repository changed
Fields§
§active: Option<bool>§branch_filter: Option<String>§config: Option<BTreeMap<String, String>>Deprecated: use Metadata instead
content_type: Option<String>§created_at: Option<OffsetDateTime>§events: Option<Vec<String>>§id: Option<i64>§metadata: Option<Value>§type: Option<String>§updated_at: Option<OffsetDateTime>§url: Option<Url>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hook
impl<'de> Deserialize<'de> for Hook
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
impl StructuralPartialEq for Hook
Auto Trait Implementations§
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnwindSafe for Hook
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