pub struct Hook {Show 13 fields
pub type: String,
pub id: i32,
pub name: String,
pub active: bool,
pub events: Vec<String>,
pub config: Box<WebhookConfig>,
pub updated_at: String,
pub created_at: String,
pub url: String,
pub test_url: String,
pub ping_url: String,
pub deliveries_url: Option<String>,
pub last_response: Box<HookResponse>,
}
Expand description
Hook : Webhooks for repositories.
Fields§
§type: String
§id: i32
Unique identifier of the webhook.
name: String
The name of a valid service, use ‘web’ for a webhook.
active: bool
Determines whether the hook is actually triggered on pushes.
events: Vec<String>
Determines what events the hook is triggered for. Default: [‘push’].
config: Box<WebhookConfig>
§updated_at: String
§created_at: String
§url: String
§test_url: String
§ping_url: String
§deliveries_url: Option<String>
§last_response: Box<HookResponse>
Implementations§
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