#[non_exhaustive]pub enum TopicCollection {
TopicIds(TopicIdCollection),
TopicNames(TopicNameCollection),
}Expand description
A class used to represent a collection of topics. This collection may define topics by name or ID.
§Translation notes
An enum whose variants wrap Java’s two subclasses.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopicIds(TopicIdCollection)
A collection of topics defined by their topic ID
(TopicCollection.TopicIdCollection).
TopicNames(TopicNameCollection)
A collection of topics defined by their topic name
(TopicCollection.TopicNameCollection).
Implementations§
Source§impl TopicCollection
impl TopicCollection
Sourcepub fn of_topic_ids(topics: Vec<Uuid>) -> TopicCollection
pub fn of_topic_ids(topics: Vec<Uuid>) -> TopicCollection
Sourcepub fn of_topic_names(topics: Vec<String>) -> TopicCollection
pub fn of_topic_names(topics: Vec<String>) -> TopicCollection
Trait Implementations§
Source§impl Clone for TopicCollection
impl Clone for TopicCollection
Source§fn clone(&self) -> TopicCollection
fn clone(&self) -> TopicCollection
Returns a duplicate of the value. Read more
1.0.0 · 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 TopicCollection
impl RefUnwindSafe for TopicCollection
impl Send for TopicCollection
impl Sync for TopicCollection
impl Unpin for TopicCollection
impl UnsafeUnpin for TopicCollection
impl UnwindSafe for TopicCollection
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