pub struct Hook {Show 13 fields
pub active: bool,
pub config: HookConfig,
pub created_at: Option<DateTime<Utc>>,
pub deliveries_url: String,
pub events: Vec<String>,
pub id: i64,
pub last_response: HookResponse,
pub name: String,
pub ping_url: String,
pub test_url: String,
pub type_: String,
pub updated_at: Option<DateTime<Utc>>,
pub url: String,
}
Expand description
Webhooks for repositories.
Fields§
§active: bool
§config: HookConfig
§created_at: Option<DateTime<Utc>>
§deliveries_url: String
§events: Vec<String>
The list of events for the GitHub app
id: i64
§last_response: HookResponse
§name: String
§ping_url: String
§test_url: String
§type_: String
§updated_at: Option<DateTime<Utc>>
§url: String
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
source§impl JsonSchema for Hook
impl JsonSchema for Hook
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<Hook> for Hook
impl PartialEq<Hook> for Hook
impl StructuralPartialEq for Hook
Auto Trait Implementations§
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