Struct aws_sdk_pinpoint::types::CampaignHook
source · #[non_exhaustive]pub struct CampaignHook {
pub lambda_function_name: Option<String>,
pub mode: Option<Mode>,
pub web_url: Option<String>,
}
Expand description
Specifies settings for invoking an AWS Lambda function that customizes a segment for a campaign.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.lambda_function_name: Option<String>
The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.
mode: Option<Mode>
The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:
-
FILTER - Invoke the function to customize the segment that's used by a campaign.
-
DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.
web_url: Option<String>
The web URL that Amazon Pinpoint calls to invoke the AWS Lambda function over HTTPS.
Implementations§
source§impl CampaignHook
impl CampaignHook
sourcepub fn lambda_function_name(&self) -> Option<&str>
pub fn lambda_function_name(&self) -> Option<&str>
The name or Amazon Resource Name (ARN) of the AWS Lambda function that Amazon Pinpoint invokes to customize a segment for a campaign.
sourcepub fn mode(&self) -> Option<&Mode>
pub fn mode(&self) -> Option<&Mode>
The mode that Amazon Pinpoint uses to invoke the AWS Lambda function. Possible values are:
-
FILTER - Invoke the function to customize the segment that's used by a campaign.
-
DELIVERY - (Deprecated) Previously, invoked the function to send a campaign through a custom channel. This functionality is not supported anymore. To send a campaign through a custom channel, use the CustomDeliveryConfiguration and CampaignCustomMessage objects of the campaign.
source§impl CampaignHook
impl CampaignHook
sourcepub fn builder() -> CampaignHookBuilder
pub fn builder() -> CampaignHookBuilder
Creates a new builder-style object to manufacture CampaignHook
.
Trait Implementations§
source§impl Clone for CampaignHook
impl Clone for CampaignHook
source§fn clone(&self) -> CampaignHook
fn clone(&self) -> CampaignHook
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignHook
impl Debug for CampaignHook
source§impl PartialEq for CampaignHook
impl PartialEq for CampaignHook
source§fn eq(&self, other: &CampaignHook) -> bool
fn eq(&self, other: &CampaignHook) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CampaignHook
Auto Trait Implementations§
impl Freeze for CampaignHook
impl RefUnwindSafe for CampaignHook
impl Send for CampaignHook
impl Sync for CampaignHook
impl Unpin for CampaignHook
impl UnwindSafe for CampaignHook
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> 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