pub struct WebhookFull {Show 13 fields
pub self_link: Option<Url>,
pub web_link: Option<Url>,
pub resource_type_link: Option<Url>,
pub http_etag: Option<String>,
pub active: bool,
pub date_created: DateTime<Utc>,
pub date_last_modified: DateTime<Utc>,
pub deliveries_collection_link: Url,
pub delivery_url: Url,
pub event_types: Vec<String>,
pub git_ref_pattern: String,
pub registrant_link: Url,
pub target_link: Url,
}Expand description
Representation of the webhook-full resource
Fields§
§self_link: Option<Url>The canonical link to this resource.
web_link: Option<Url>The canonical human-addressable web link to this resource.
resource_type_link: Option<Url>The link to the WADL description of this resource.
http_etag: Option<String>The value of the HTTP ETag for this resource.
active: boolActive
Deliver details of subscribed events.
date_created: DateTime<Utc>Date created
date_last_modified: DateTime<Utc>Date last modified
deliveries_collection_link: UrlRecent deliveries for this webhook.
delivery_url: UrlDelivery URL
event_types: Vec<String>Event types
git_ref_pattern: StringGit ref pattern
Pattern to match against git-ref/branch name of an event, to filter webhook triggers
registrant_link: UrlRegistrant
The person who created this webhook.
target_link: UrlTarget
The object for which this webhook receives events.
Implementations§
Source§impl WebhookFull
impl WebhookFull
pub fn set_self_(&mut self, value: Option<Webhook>)
Sourcepub fn deliveries<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, WebhookDeliveryPage>, Error>
pub fn deliveries<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, WebhookDeliveryPage>, Error>
Recent deliveries for this webhook.
Sourcepub fn registrant(&self) -> Person
pub fn registrant(&self) -> Person
Registrant
The person who created this webhook.
pub fn set_registrant(&mut self, value: Person)
Sourcepub fn target(&self) -> WebhookTarget
pub fn target(&self) -> WebhookTarget
Target
The object for which this webhook receives events.
pub fn set_target(&mut self, value: WebhookTarget)
Trait Implementations§
Source§impl Clone for WebhookFull
impl Clone for WebhookFull
Source§fn clone(&self) -> WebhookFull
fn clone(&self) -> WebhookFull
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebhookFull
impl Debug for WebhookFull
Source§impl<'de> Deserialize<'de> for WebhookFull
impl<'de> Deserialize<'de> for WebhookFull
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 PartialEq for WebhookFull
impl PartialEq for WebhookFull
Source§impl Serialize for WebhookFull
impl Serialize for WebhookFull
impl StructuralPartialEq for WebhookFull
Auto Trait Implementations§
impl Freeze for WebhookFull
impl RefUnwindSafe for WebhookFull
impl Send for WebhookFull
impl Sync for WebhookFull
impl Unpin for WebhookFull
impl UnwindSafe for WebhookFull
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