pub struct CreateWebhookRequest {
pub endpoint_url: Option<String>,
pub provider_type: Option<String>,
pub subscriptions: Option<Vec<String>>,
pub unknown: Unknown,
}Expand description
What creating an endpoint sends.
Fields§
§endpoint_url: Option<String>Where the POST goes. Required.
provider_type: Option<String>One of PROVIDER_TYPES, which shapes the payload for a receiver
that expects its own format. Omit for Tailscale’s own shape.
subscriptions: Option<Vec<String>>Which events to send. Any of SUBSCRIPTIONS. Required.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for CreateWebhookRequest
impl Clone for CreateWebhookRequest
Source§fn clone(&self) -> CreateWebhookRequest
fn clone(&self) -> CreateWebhookRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateWebhookRequest
impl Debug for CreateWebhookRequest
Source§impl<'de> Deserialize<'de> for CreateWebhookRequest
impl<'de> Deserialize<'de> for CreateWebhookRequest
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 CreateWebhookRequest
impl PartialEq for CreateWebhookRequest
Source§impl Serialize for CreateWebhookRequest
impl Serialize for CreateWebhookRequest
impl StructuralPartialEq for CreateWebhookRequest
Auto Trait Implementations§
impl Freeze for CreateWebhookRequest
impl RefUnwindSafe for CreateWebhookRequest
impl Send for CreateWebhookRequest
impl Sync for CreateWebhookRequest
impl Unpin for CreateWebhookRequest
impl UnsafeUnpin for CreateWebhookRequest
impl UnwindSafe for CreateWebhookRequest
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