#[non_exhaustive]pub struct WebhookConfig {
pub state: State,
pub auth_method: Option<AuthMethod>,
/* private fields */
}
Expand description
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger’s webhook URL.
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.state: State
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
auth_method: Option<AuthMethod>
Auth method specifies how the webhook authenticates with GCP.
Implementations§
Source§impl WebhookConfig
impl WebhookConfig
pub fn new() -> Self
Sourcepub fn set_auth_method<T: Into<Option<AuthMethod>>>(self, v: T) -> Self
pub fn set_auth_method<T: Into<Option<AuthMethod>>>(self, v: T) -> Self
Sets the value of auth_method.
Note that all the setters affecting auth_method
are mutually
exclusive.
Sourcepub fn secret(&self) -> Option<&String>
pub fn secret(&self) -> Option<&String>
The value of auth_method
if it holds a Secret
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_secret<T: Into<String>>(self, v: T) -> Self
pub fn set_secret<T: Into<String>>(self, v: T) -> Self
Sets the value of auth_method
to hold a Secret
.
Note that all the setters affecting auth_method
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§fn clone(&self) -> WebhookConfig
fn clone(&self) -> WebhookConfig
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 WebhookConfig
impl Debug for WebhookConfig
Source§impl Default for WebhookConfig
impl Default for WebhookConfig
Source§fn default() -> WebhookConfig
fn default() -> WebhookConfig
Returns the “default value” for a type. Read more
Source§impl Message for WebhookConfig
impl Message for WebhookConfig
Source§impl PartialEq for WebhookConfig
impl PartialEq for WebhookConfig
impl StructuralPartialEq for WebhookConfig
Auto Trait Implementations§
impl Freeze for WebhookConfig
impl RefUnwindSafe for WebhookConfig
impl Send for WebhookConfig
impl Sync for WebhookConfig
impl Unpin for WebhookConfig
impl UnwindSafe for WebhookConfig
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