pub struct HostEvent {
pub resource_type: String,
pub alias: String,
pub event: String,
pub payload_ty: NamedDataType,
}Fields§
§resource_type: String§alias: String§event: String§payload_ty: NamedDataTypeImplementations§
Source§impl HostEvent
impl HostEvent
pub fn new( resource_type: impl Into<String>, alias: impl Into<String>, event: impl Into<String>, payload_ty: NamedDataType, ) -> Self
pub fn payload_type(&self) -> &NamedDataType
pub fn key(&self) -> HostEventKey
pub fn source_type(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HostEvent
impl<'de> Deserialize<'de> for HostEvent
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
impl Eq for HostEvent
impl StructuralPartialEq for HostEvent
Auto Trait Implementations§
impl Freeze for HostEvent
impl RefUnwindSafe for HostEvent
impl Send for HostEvent
impl Sync for HostEvent
impl Unpin for HostEvent
impl UnsafeUnpin for HostEvent
impl UnwindSafe for HostEvent
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