Struct fiberplane_models::webhooks::UpdateWebhook
source · #[non_exhaustive]pub struct UpdateWebhook {
pub endpoint: Option<String>,
pub events: Option<Vec<WebhookCategory>>,
pub regenerate_shared_secret: bool,
pub enabled: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: Option<String>§events: Option<Vec<WebhookCategory>>§enabled: Option<bool>Implementations§
source§impl UpdateWebhook
impl UpdateWebhook
sourcepub fn builder() -> UpdateWebhookBuilder<((), (), (), ())>
pub fn builder() -> UpdateWebhookBuilder<((), (), (), ())>
Create a builder for building UpdateWebhook.
On the builder, call .endpoint(...)(optional), .events(...)(optional), .regenerate_shared_secret(...)(optional), .enabled(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of UpdateWebhook.
Trait Implementations§
source§impl Clone for UpdateWebhook
impl Clone for UpdateWebhook
source§fn clone(&self) -> UpdateWebhook
fn clone(&self) -> UpdateWebhook
Returns a copy 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 UpdateWebhook
impl Debug for UpdateWebhook
source§impl<'de> Deserialize<'de> for UpdateWebhook
impl<'de> Deserialize<'de> for UpdateWebhook
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 UpdateWebhook
impl PartialEq for UpdateWebhook
source§fn eq(&self, other: &UpdateWebhook) -> bool
fn eq(&self, other: &UpdateWebhook) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for UpdateWebhook
impl Serialize for UpdateWebhook
impl Eq for UpdateWebhook
impl StructuralPartialEq for UpdateWebhook
Auto Trait Implementations§
impl Freeze for UpdateWebhook
impl RefUnwindSafe for UpdateWebhook
impl Send for UpdateWebhook
impl Sync for UpdateWebhook
impl Unpin for UpdateWebhook
impl UnwindSafe for UpdateWebhook
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