pub enum DeserializedEvent {
APIResponse(APIResponse),
Event(Value),
}Expand description
经由 CommunicationService 初步反序列化后的原始事件
Variants§
APIResponse(APIResponse)
Event(Value)
Implementations§
Source§impl DeserializedEvent
impl DeserializedEvent
Sourcepub const fn is_api_response(&self) -> bool
pub const fn is_api_response(&self) -> bool
Returns true if the enum is DeserializedEvent::APIResponse otherwise false
Trait Implementations§
Source§impl Clone for DeserializedEvent
impl Clone for DeserializedEvent
Source§fn clone(&self) -> DeserializedEvent
fn clone(&self) -> DeserializedEvent
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 moreSource§impl Debug for DeserializedEvent
impl Debug for DeserializedEvent
Source§impl<'de> Deserialize<'de> for DeserializedEvent
impl<'de> Deserialize<'de> for DeserializedEvent
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 DeserializedEvent
impl RefUnwindSafe for DeserializedEvent
impl Send for DeserializedEvent
impl Sync for DeserializedEvent
impl Unpin for DeserializedEvent
impl UnsafeUnpin for DeserializedEvent
impl UnwindSafe for DeserializedEvent
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