pub enum AnimalEvents {
FrogEvents(FrogEvent),
CatEvents(CatEvent),
}Variants§
Trait Implementations§
source§impl Clone for AnimalEvents
impl Clone for AnimalEvents
source§fn clone(&self) -> AnimalEvents
fn clone(&self) -> AnimalEvents
Returns a copy 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 moresource§impl Debug for AnimalEvents
impl Debug for AnimalEvents
source§impl<'de> Deserialize<'de> for AnimalEvents
impl<'de> Deserialize<'de> for AnimalEvents
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
source§impl EntityName for AnimalEvents
impl EntityName for AnimalEvents
fn entity_name(&self) -> &'static str
source§impl EventName for AnimalEvents
impl EventName for AnimalEvents
fn event_name(&self) -> &'static str
source§impl From<AnimalEvents> for Option<CatEvent>
impl From<AnimalEvents> for Option<CatEvent>
source§fn from(value: AnimalEvents) -> Self
fn from(value: AnimalEvents) -> Self
Converts to this type from the input type.
source§impl From<CatEvent> for AnimalEvents
impl From<CatEvent> for AnimalEvents
source§impl PartialEq<AnimalEvents> for AnimalEvents
impl PartialEq<AnimalEvents> for AnimalEvents
source§fn eq(&self, other: &AnimalEvents) -> bool
fn eq(&self, other: &AnimalEvents) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AnimalEvents
impl Serialize for AnimalEvents
impl Eq for AnimalEvents
impl EventWrapperTrait for AnimalEvents
impl StructuralEq for AnimalEvents
impl StructuralPartialEq for AnimalEvents
Auto Trait Implementations§
impl RefUnwindSafe for AnimalEvents
impl Send for AnimalEvents
impl Sync for AnimalEvents
impl Unpin for AnimalEvents
impl UnwindSafe for AnimalEvents
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