Struct atspi_proxies::events::EventBody
source · pub struct EventBody<'a, T> {
pub kind: T,
pub detail1: i32,
pub detail2: i32,
pub any_data: Value<'a>,
pub properties: HashMap<&'a str, Value<'a>, RandomState>,
}
Expand description
A borrowed body for events.
Fields§
§kind: T
A generic “kind” type, defined by AT-SPI:
usually a &'a str
, but can be another type like crate::state::State
.
detail1: i32
Generic first detail defined by AT-SPI.
detail2: i32
Generic second detail defined by AT-SPI.
any_data: Value<'a>
Generic “any_data” field defined in AT-SPI. Can contain any type.
properties: HashMap<&'a str, Value<'a>, RandomState>
Map of string to an any type. This is not used for anything, but it is defined by AT-SPI.
Trait Implementations§
source§impl<'de, 'a, T> Deserialize<'de> for EventBody<'a, T>where
'de: 'a,
T: Deserialize<'de>,
impl<'de, 'a, T> Deserialize<'de> for EventBody<'a, T>where 'de: 'a, T: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EventBody<'a, T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<EventBody<'a, T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a, T> Serialize for EventBody<'a, T>where
T: Serialize,
impl<'a, T> Serialize for EventBody<'a, T>where T: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for EventBody<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for EventBody<'a, T>where T: Send,
impl<'a, T> Sync for EventBody<'a, T>where T: Sync,
impl<'a, T> Unpin for EventBody<'a, T>where T: Unpin,
impl<'a, T> UnwindSafe for EventBody<'a, T>where T: UnwindSafe,
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
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more