Struct aws_sdk_amplify::types::Webhook
source · #[non_exhaustive]pub struct Webhook {
pub webhook_arn: String,
pub webhook_id: String,
pub webhook_url: String,
pub branch_name: String,
pub description: String,
pub create_time: DateTime,
pub update_time: DateTime,
}
Expand description
Describes a webhook that connects repository events to an Amplify app.
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.webhook_arn: String
The Amazon Resource Name (ARN) for the webhook.
webhook_id: String
The ID of the webhook.
webhook_url: String
The URL of the webhook.
branch_name: String
The name for a branch that is part of an Amplify app.
description: String
The description for a webhook.
create_time: DateTime
The create date and time for a webhook.
update_time: DateTime
Updates the date and time for a webhook.
Implementations§
source§impl Webhook
impl Webhook
sourcepub fn webhook_arn(&self) -> &str
pub fn webhook_arn(&self) -> &str
The Amazon Resource Name (ARN) for the webhook.
sourcepub fn webhook_id(&self) -> &str
pub fn webhook_id(&self) -> &str
The ID of the webhook.
sourcepub fn webhook_url(&self) -> &str
pub fn webhook_url(&self) -> &str
The URL of the webhook.
sourcepub fn branch_name(&self) -> &str
pub fn branch_name(&self) -> &str
The name for a branch that is part of an Amplify app.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
The description for a webhook.
sourcepub fn create_time(&self) -> &DateTime
pub fn create_time(&self) -> &DateTime
The create date and time for a webhook.
sourcepub fn update_time(&self) -> &DateTime
pub fn update_time(&self) -> &DateTime
Updates the date and time for a webhook.
Trait Implementations§
source§impl PartialEq for Webhook
impl PartialEq for Webhook
impl StructuralPartialEq for Webhook
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.