pub struct Webhook {Show 14 fields
pub active: bool,
pub app_id: Option<i32>,
pub config: Box<WebhookConfig>,
pub created_at: String,
pub deliveries_url: Option<String>,
pub events: Vec<String>,
pub id: i32,
pub last_response: Option<Box<HookResponse>>,
pub name: Name,
pub ping_url: Option<String>,
pub test_url: Option<String>,
pub type: String,
pub updated_at: String,
pub url: Option<String>,
}
Expand description
Webhook : The webhook that is being pinged
Fields§
§active: bool
Determines whether the hook is actually triggered for the events it subscribes to.
app_id: Option<i32>
Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.
config: Box<WebhookConfig>
§created_at: String
§deliveries_url: Option<String>
§events: Vec<String>
Determines what events the hook is triggered for. Default: [‘push’].
id: i32
Unique identifier of the webhook.
last_response: Option<Box<HookResponse>>
§name: Name
The type of webhook. The only valid value is ‘web’.
ping_url: Option<String>
§test_url: Option<String>
§type: String
§updated_at: String
§url: Option<String>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
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 Webhook
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
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