Struct octorust::types::Hook [−][src]
pub struct Hook { pub active: bool, pub config: HookConfig, pub created_at: DateTime<Utc>, 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: DateTime<Utc>, pub url: String, }
Expand description
Webhooks for repositories.
Fields
active: bool
Determines whether the hook is actually triggered on pushes.
config: HookConfig
created_at: DateTime<Utc>
events: Vec<String>
Determines what events the hook is triggered for. Default: [‘push’].
id: i64
Unique identifier of the webhook.
last_response: HookResponse
name: String
The name of a valid service, use ‘web’ for a webhook.
ping_url: String
test_url: String
type_: String
updated_at: DateTime<Utc>
url: String
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Hook
impl UnwindSafe for Hook
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more