Struct aws_sdk_datazone::types::Topic
source · #[non_exhaustive]pub struct Topic {
pub subject: String,
pub resource: Option<NotificationResource>,
pub role: NotificationRole,
}
Expand description
The topic of the notification.
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.subject: String
The subject of the resource mentioned in a notification.
resource: Option<NotificationResource>
The details of the resource mentioned in a notification.
role: NotificationRole
The role of the resource mentioned in a notification.
Implementations§
source§impl Topic
impl Topic
sourcepub fn resource(&self) -> Option<&NotificationResource>
pub fn resource(&self) -> Option<&NotificationResource>
The details of the resource mentioned in a notification.
sourcepub fn role(&self) -> &NotificationRole
pub fn role(&self) -> &NotificationRole
The role of the resource mentioned in a notification.
Trait Implementations§
source§impl PartialEq for Topic
impl PartialEq for Topic
impl StructuralPartialEq for Topic
Auto Trait Implementations§
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnwindSafe for Topic
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>
Creates a shared type from an unshared type.