Struct fiberplane_models::webhooks::Webhook
source · #[non_exhaustive]pub struct Webhook {
pub id: Base64Uuid,
pub workspace_id: Base64Uuid,
pub endpoint: String,
pub events: Vec<WebhookCategory>,
pub shared_secret: Option<String>,
pub enabled: bool,
pub successful: bool,
pub created_by: Option<Base64Uuid>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
}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.id: Base64Uuid§workspace_id: Base64Uuid§endpoint: String§events: Vec<WebhookCategory>§enabled: bool§successful: boolWhether the last delivery was successful
created_by: Option<Base64Uuid>§created_at: Timestamp§updated_at: TimestampImplementations§
source§impl Webhook
impl Webhook
sourcepub fn builder() -> WebhookBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> WebhookBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building Webhook.
On the builder, call .id(...), .workspace_id(...), .endpoint(...), .events(...), .shared_secret(...)(optional), .enabled(...)(optional), .successful(...)(optional), .created_by(...)(optional), .created_at(...), .updated_at(...) to set the values of the fields.
Finally, call .build() to create the instance of Webhook.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
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 Webhook
impl PartialEq for Webhook
impl Eq for Webhook
impl StructuralPartialEq for Webhook
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
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