#[non_exhaustive]pub struct ProcessWebhookRequest {
pub parent: String,
pub body: Option<HttpBody>,
pub webhook_key: String,
/* private fields */
}Expand description
RPC request object accepted by the ProcessWebhook RPC method.
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. Project and location where the webhook will be received.
Format: projects/*/locations/*.
body: Option<HttpBody>HTTP request body.
webhook_key: StringArbitrary additional key to find the maching repository for a webhook event if needed.
Implementations§
Source§impl ProcessWebhookRequest
impl ProcessWebhookRequest
pub fn new() -> Self
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_or_clear_body<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Self
Sourcepub fn set_webhook_key<T: Into<String>>(self, v: T) -> Self
pub fn set_webhook_key<T: Into<String>>(self, v: T) -> Self
Sets the value of webhook_key.
§Example
ⓘ
let x = ProcessWebhookRequest::new().set_webhook_key("example");Trait Implementations§
Source§impl Clone for ProcessWebhookRequest
impl Clone for ProcessWebhookRequest
Source§fn clone(&self) -> ProcessWebhookRequest
fn clone(&self) -> ProcessWebhookRequest
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 ProcessWebhookRequest
impl Debug for ProcessWebhookRequest
Source§impl Default for ProcessWebhookRequest
impl Default for ProcessWebhookRequest
Source§fn default() -> ProcessWebhookRequest
fn default() -> ProcessWebhookRequest
Returns the “default value” for a type. Read more
Source§impl Message for ProcessWebhookRequest
impl Message for ProcessWebhookRequest
Source§impl PartialEq for ProcessWebhookRequest
impl PartialEq for ProcessWebhookRequest
impl StructuralPartialEq for ProcessWebhookRequest
Auto Trait Implementations§
impl !Freeze for ProcessWebhookRequest
impl RefUnwindSafe for ProcessWebhookRequest
impl Send for ProcessWebhookRequest
impl Sync for ProcessWebhookRequest
impl Unpin for ProcessWebhookRequest
impl UnwindSafe for ProcessWebhookRequest
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