pub struct EventTypeNames(/* private fields */);Expand description
A collection of EventTypeNames
Used for e.g. creating subscriptions.
Implementations§
Source§impl EventTypeNames
impl EventTypeNames
pub fn new<T: Into<Vec<EventTypeName>>>(event_types: T) -> Self
pub fn event_type_name<T: Into<EventTypeName>>(self, v: T) -> Self
Sourcepub fn into_inner(self) -> Vec<EventTypeName>
pub fn into_inner(self) -> Vec<EventTypeName>
Return the inner Vec and consume self.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push<T: Into<EventTypeName>>(&mut self, event_type: T)
Trait Implementations§
Source§impl AsRef<[EventTypeName]> for EventTypeNames
impl AsRef<[EventTypeName]> for EventTypeNames
Source§fn as_ref(&self) -> &[EventTypeName]
fn as_ref(&self) -> &[EventTypeName]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for EventTypeNames
impl Clone for EventTypeNames
Source§impl Debug for EventTypeNames
impl Debug for EventTypeNames
Source§impl Default for EventTypeNames
impl Default for EventTypeNames
Source§impl<'de> Deserialize<'de> for EventTypeNames
impl<'de> Deserialize<'de> for EventTypeNames
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventTypeNames
impl RefUnwindSafe for EventTypeNames
impl Send for EventTypeNames
impl Sync for EventTypeNames
impl Unpin for EventTypeNames
impl UnsafeUnpin for EventTypeNames
impl UnwindSafe for EventTypeNames
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