Struct aws_sdk_mturk::model::NotificationSpecification
source · [−]#[non_exhaustive]pub struct NotificationSpecification {
pub destination: Option<String>,
pub transport: Option<NotificationTransport>,
pub version: Option<String>,
pub event_types: Option<Vec<EventType>>,
}
Expand description
The NotificationSpecification data structure describes a HIT event notification for a HIT type.
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.destination: Option<String>
The target for notification messages. The Destination’s format is determined by the specified Transport:
-
When Transport is Email, the Destination is your email address.
-
When Transport is SQS, the Destination is your queue URL.
-
When Transport is SNS, the Destination is the ARN of your topic.
transport: Option<NotificationTransport>
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
version: Option<String>
The version of the Notification API to use. Valid value is 2006-05-05.
event_types: Option<Vec<EventType>>
The list of events that should cause notifications to be sent. Valid Values: AssignmentAccepted | AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated | HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is only valid for the SendTestEventNotification operation.
Implementations
sourceimpl NotificationSpecification
impl NotificationSpecification
sourcepub fn destination(&self) -> Option<&str>
pub fn destination(&self) -> Option<&str>
The target for notification messages. The Destination’s format is determined by the specified Transport:
-
When Transport is Email, the Destination is your email address.
-
When Transport is SQS, the Destination is your queue URL.
-
When Transport is SNS, the Destination is the ARN of your topic.
sourcepub fn transport(&self) -> Option<&NotificationTransport>
pub fn transport(&self) -> Option<&NotificationTransport>
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
sourcepub fn version(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
The version of the Notification API to use. Valid value is 2006-05-05.
sourcepub fn event_types(&self) -> Option<&[EventType]>
pub fn event_types(&self) -> Option<&[EventType]>
The list of events that should cause notifications to be sent. Valid Values: AssignmentAccepted | AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated | HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is only valid for the SendTestEventNotification operation.
sourceimpl NotificationSpecification
impl NotificationSpecification
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NotificationSpecification
Trait Implementations
sourceimpl Clone for NotificationSpecification
impl Clone for NotificationSpecification
sourcefn clone(&self) -> NotificationSpecification
fn clone(&self) -> NotificationSpecification
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NotificationSpecification
impl Debug for NotificationSpecification
sourceimpl PartialEq<NotificationSpecification> for NotificationSpecification
impl PartialEq<NotificationSpecification> for NotificationSpecification
sourcefn eq(&self, other: &NotificationSpecification) -> bool
fn eq(&self, other: &NotificationSpecification) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NotificationSpecification) -> bool
fn ne(&self, other: &NotificationSpecification) -> bool
This method tests for !=
.
impl StructuralPartialEq for NotificationSpecification
Auto Trait Implementations
impl RefUnwindSafe for NotificationSpecification
impl Send for NotificationSpecification
impl Sync for NotificationSpecification
impl Unpin for NotificationSpecification
impl UnwindSafe for NotificationSpecification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more