pub struct TopicDefinition {
pub canonical_url: String,
pub title: Option<String>,
pub resource_triggers: Vec<ResourceTrigger>,
pub can_filter_by: Vec<FilterDefinition>,
pub notification_shape: Vec<NotificationShape>,
}Expand description
A version-agnostic representation of a SubscriptionTopic.
Fields§
§canonical_url: StringThe canonical URL of the topic (e.g., http://example.org/topic/encounter-start).
title: Option<String>Human-readable title.
resource_triggers: Vec<ResourceTrigger>Resource triggers that define when this topic fires.
can_filter_by: Vec<FilterDefinition>Filters that subscribers can use to narrow which events they receive.
notification_shape: Vec<NotificationShape>Notification shape: which resource types may appear in notifications.
Trait Implementations§
Source§impl Clone for TopicDefinition
impl Clone for TopicDefinition
Source§fn clone(&self) -> TopicDefinition
fn clone(&self) -> TopicDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TopicDefinition
impl RefUnwindSafe for TopicDefinition
impl Send for TopicDefinition
impl Sync for TopicDefinition
impl Unpin for TopicDefinition
impl UnsafeUnpin for TopicDefinition
impl UnwindSafe for TopicDefinition
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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