pub struct WebhookPolicy {
pub id: Option<i64>,
pub name: Option<String>,
pub description: Option<String>,
pub project_id: Option<i32>,
pub targets: Option<Vec<WebhookTargetObject>>,
pub event_types: Option<Vec<String>>,
pub creator: Option<String>,
pub creation_time: Option<String>,
pub update_time: Option<String>,
pub enabled: Option<bool>,
}Expand description
WebhookPolicy : The webhook policy object
Fields§
§id: Option<i64>The webhook policy ID.
name: Option<String>The name of webhook policy.
description: Option<String>The description of webhook policy.
project_id: Option<i32>The project ID of webhook policy.
targets: Option<Vec<WebhookTargetObject>>§event_types: Option<Vec<String>>§creator: Option<String>The creator of the webhook policy.
creation_time: Option<String>The create time of the webhook policy.
update_time: Option<String>The update time of the webhook policy.
enabled: Option<bool>Whether the webhook policy is enabled or not.
Implementations§
Source§impl WebhookPolicy
impl WebhookPolicy
Sourcepub fn new() -> WebhookPolicy
pub fn new() -> WebhookPolicy
The webhook policy object
Trait Implementations§
Source§impl Clone for WebhookPolicy
impl Clone for WebhookPolicy
Source§fn clone(&self) -> WebhookPolicy
fn clone(&self) -> WebhookPolicy
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 WebhookPolicy
impl Debug for WebhookPolicy
Source§impl Default for WebhookPolicy
impl Default for WebhookPolicy
Source§fn default() -> WebhookPolicy
fn default() -> WebhookPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookPolicy
impl<'de> Deserialize<'de> for WebhookPolicy
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 WebhookPolicy
impl PartialEq for WebhookPolicy
Source§impl Serialize for WebhookPolicy
impl Serialize for WebhookPolicy
impl StructuralPartialEq for WebhookPolicy
Auto Trait Implementations§
impl Freeze for WebhookPolicy
impl RefUnwindSafe for WebhookPolicy
impl Send for WebhookPolicy
impl Sync for WebhookPolicy
impl Unpin for WebhookPolicy
impl UnwindSafe for WebhookPolicy
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