Struct aws_sdk_ivschat::types::MessageReviewHandler
source · #[non_exhaustive]pub struct MessageReviewHandler {
pub uri: Option<String>,
pub fallback_result: Option<FallbackResult>,
}
Expand description
Configuration information for optional message review.
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.uri: Option<String>
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
fallback_result: Option<FallbackResult>
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user. Default: ALLOW
.
Implementations§
source§impl MessageReviewHandler
impl MessageReviewHandler
sourcepub fn uri(&self) -> Option<&str>
pub fn uri(&self) -> Option<&str>
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
sourcepub fn fallback_result(&self) -> Option<&FallbackResult>
pub fn fallback_result(&self) -> Option<&FallbackResult>
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user. Default: ALLOW
.
source§impl MessageReviewHandler
impl MessageReviewHandler
sourcepub fn builder() -> MessageReviewHandlerBuilder
pub fn builder() -> MessageReviewHandlerBuilder
Creates a new builder-style object to manufacture MessageReviewHandler
.
Trait Implementations§
source§impl Clone for MessageReviewHandler
impl Clone for MessageReviewHandler
source§fn clone(&self) -> MessageReviewHandler
fn clone(&self) -> MessageReviewHandler
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageReviewHandler
impl Debug for MessageReviewHandler
source§impl PartialEq for MessageReviewHandler
impl PartialEq for MessageReviewHandler
source§fn eq(&self, other: &MessageReviewHandler) -> bool
fn eq(&self, other: &MessageReviewHandler) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MessageReviewHandler
Auto Trait Implementations§
impl Freeze for MessageReviewHandler
impl RefUnwindSafe for MessageReviewHandler
impl Send for MessageReviewHandler
impl Sync for MessageReviewHandler
impl Unpin for MessageReviewHandler
impl UnwindSafe for MessageReviewHandler
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