pub struct AddWebhookRequest {
pub subscription_url: String,
pub event_action: EventAction,
pub event_object: EventObject,
pub user_id: Option<i32>,
pub http_auth_user: Option<String>,
pub http_auth_password: Option<String>,
pub version: Option<Version>,
}
Fields§
§subscription_url: String
A full, valid, publicly accessible URL which determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the subscription_url
and the chosen URL must not redirect to another link.
event_action: EventAction
The type of action to receive notifications about. Wildcard will match all supported actions.
event_object: EventObject
The type of object to receive notifications about. Wildcard will match all supported objects.
user_id: Option<i32>
The ID of the user that this webhook will be authorized with. You have the option to use a different user’s user_id
. If it is not set, the current user’s user_id
will be used. As each webhook event is checked against a user’s permissions, the webhook will only be sent if the user has access to the specified object(s). If you want to receive notifications for all events, please use a top-level admin user’s user_id
.
http_auth_user: Option<String>
The HTTP basic auth username of the subscription URL endpoint (if required)
http_auth_password: Option<String>
The HTTP basic auth password of the subscription URL endpoint (if required)
version: Option<Version>
The webhook’s version
Implementations§
Source§impl AddWebhookRequest
impl AddWebhookRequest
pub fn new( subscription_url: String, event_action: EventAction, event_object: EventObject, ) -> AddWebhookRequest
Trait Implementations§
Source§impl Clone for AddWebhookRequest
impl Clone for AddWebhookRequest
Source§fn clone(&self) -> AddWebhookRequest
fn clone(&self) -> AddWebhookRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more