#[non_exhaustive]pub struct CreateWebhookRequest {
pub parent: String,
pub webhook: Option<Webhook>,
/* private fields */
}Available on crate feature
webhooks only.Expand description
The request message for Webhooks.CreateWebhook.
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.parent: StringRequired. The agent to create a webhook for.
Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
webhook: Option<Webhook>Required. The webhook to create.
Implementations§
Source§impl CreateWebhookRequest
impl CreateWebhookRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_webhook<T>(self, v: T) -> Self
pub fn set_webhook<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_webhook<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_webhook<T>(self, v: Option<T>) -> Self
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 Default for CreateWebhookRequest
impl Default for CreateWebhookRequest
Source§fn default() -> CreateWebhookRequest
fn default() -> CreateWebhookRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateWebhookRequest
impl Message for CreateWebhookRequest
Source§impl PartialEq for CreateWebhookRequest
impl PartialEq for CreateWebhookRequest
Source§fn eq(&self, other: &CreateWebhookRequest) -> bool
fn eq(&self, other: &CreateWebhookRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.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