pub enum WebhookDeliveryMethod {
Http {
uri: String,
},
EventBridge {
arn: String,
},
PubSub {
project_id: String,
topic_id: String,
},
}Expand description
Represents the delivery method for a webhook subscription.
Webhooks can be delivered via HTTP callback, Amazon EventBridge, or Google Cloud Pub/Sub.
§Variants
Http: Delivers webhooks to an HTTP/HTTPS endpointEventBridge: Delivers webhooks to Amazon EventBridgePubSub: Delivers webhooks to Google Cloud Pub/Sub
§Example
use shopify_sdk::webhooks::WebhookDeliveryMethod;
// HTTP delivery
let http = WebhookDeliveryMethod::Http {
uri: "https://example.com/webhooks".to_string(),
};
// Amazon EventBridge delivery
let eventbridge = WebhookDeliveryMethod::EventBridge {
arn: "arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/12345/my-source".to_string(),
};
// Google Cloud Pub/Sub delivery
let pubsub = WebhookDeliveryMethod::PubSub {
project_id: "my-project".to_string(),
topic_id: "shopify-webhooks".to_string(),
};Variants§
Http
HTTP/HTTPS webhook delivery.
Webhooks are delivered via HTTP POST to the specified URI.
EventBridge
Amazon EventBridge webhook delivery.
Webhooks are delivered to an Amazon EventBridge event source.
The ARN format is typically:
arn:aws:events:{region}::event-source/aws.partner/shopify.com/{org}/{event_source}
PubSub
Google Cloud Pub/Sub webhook delivery.
Webhooks are delivered to a Google Cloud Pub/Sub topic.
Trait Implementations§
Source§impl Clone for WebhookDeliveryMethod
impl Clone for WebhookDeliveryMethod
Source§fn clone(&self) -> WebhookDeliveryMethod
fn clone(&self) -> WebhookDeliveryMethod
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 WebhookDeliveryMethod
impl Debug for WebhookDeliveryMethod
Source§impl PartialEq for WebhookDeliveryMethod
impl PartialEq for WebhookDeliveryMethod
impl StructuralPartialEq for WebhookDeliveryMethod
Auto Trait Implementations§
impl Freeze for WebhookDeliveryMethod
impl RefUnwindSafe for WebhookDeliveryMethod
impl Send for WebhookDeliveryMethod
impl Sync for WebhookDeliveryMethod
impl Unpin for WebhookDeliveryMethod
impl UnwindSafe for WebhookDeliveryMethod
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