#[non_exhaustive]pub struct PutWebhookInputBuilder { /* private fields */ }
Expand description
A builder for PutWebhookInput
.
Implementations§
source§impl PutWebhookInputBuilder
impl PutWebhookInputBuilder
sourcepub fn webhook(self, input: WebhookDefinition) -> Self
pub fn webhook(self, input: WebhookDefinition) -> Self
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
This field is required.sourcepub fn set_webhook(self, input: Option<WebhookDefinition>) -> Self
pub fn set_webhook(self, input: Option<WebhookDefinition>) -> Self
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
sourcepub fn get_webhook(&self) -> &Option<WebhookDefinition>
pub fn get_webhook(&self) -> &Option<WebhookDefinition>
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the webhook.
The tags for the webhook.
The tags for the webhook.
sourcepub fn build(self) -> Result<PutWebhookInput, BuildError>
pub fn build(self) -> Result<PutWebhookInput, BuildError>
Consumes the builder and constructs a PutWebhookInput
.
source§impl PutWebhookInputBuilder
impl PutWebhookInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<PutWebhookOutput, SdkError<PutWebhookError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<PutWebhookOutput, SdkError<PutWebhookError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutWebhookInputBuilder
impl Clone for PutWebhookInputBuilder
source§fn clone(&self) -> PutWebhookInputBuilder
fn clone(&self) -> PutWebhookInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutWebhookInputBuilder
impl Debug for PutWebhookInputBuilder
source§impl Default for PutWebhookInputBuilder
impl Default for PutWebhookInputBuilder
source§fn default() -> PutWebhookInputBuilder
fn default() -> PutWebhookInputBuilder
source§impl PartialEq for PutWebhookInputBuilder
impl PartialEq for PutWebhookInputBuilder
impl StructuralPartialEq for PutWebhookInputBuilder
Auto Trait Implementations§
impl Freeze for PutWebhookInputBuilder
impl RefUnwindSafe for PutWebhookInputBuilder
impl Send for PutWebhookInputBuilder
impl Sync for PutWebhookInputBuilder
impl Unpin for PutWebhookInputBuilder
impl UnwindSafe for PutWebhookInputBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more