Struct aws_sdk_codestarnotifications::types::Target
source · #[non_exhaustive]pub struct Target {
pub target_type: Option<String>,
pub target_address: Option<String>,
}
Expand description
Information about the Chatbot topics or Chatbot clients associated with a notification rule.
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.target_type: Option<String>
The target type. Can be an Chatbot topic or Chatbot client.
-
Chatbot topics are specified as
SNS
. -
Chatbot clients are specified as
AWSChatbotSlack
.
target_address: Option<String>
The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client.
Implementations§
source§impl Target
impl Target
sourcepub fn target_type(&self) -> Option<&str>
pub fn target_type(&self) -> Option<&str>
The target type. Can be an Chatbot topic or Chatbot client.
-
Chatbot topics are specified as
SNS
. -
Chatbot clients are specified as
AWSChatbotSlack
.
sourcepub fn target_address(&self) -> Option<&str>
pub fn target_address(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client.
Trait Implementations§
source§impl PartialEq<Target> for Target
impl PartialEq<Target> for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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