Struct atspi_common::object_match::ObjectMatchRule
source · pub struct ObjectMatchRule {
pub states: StateSet,
pub states_mt: MatchType,
pub attr: HashMap<String, String>,
pub attr_mt: MatchType,
pub roles: Vec<Role>,
pub roles_mt: MatchType,
pub ifaces: InterfaceSet,
pub ifaces_mt: MatchType,
pub invert: bool,
/* private fields */
}
Expand description
Definition of match rules for accessible objects. Rule(s) against which we can match an object or a collection thereof.
§Examples
let builder = MatchRule::builder();
Fields§
§states: StateSet
§states_mt: MatchType
§attr: HashMap<String, String>
§attr_mt: MatchType
§roles: Vec<Role>
§roles_mt: MatchType
§ifaces: InterfaceSet
§ifaces_mt: MatchType
§invert: bool
Implementations§
source§impl ObjectMatchRule
impl ObjectMatchRule
sourcepub fn builder() -> ObjectMatchRuleBuilder
pub fn builder() -> ObjectMatchRuleBuilder
Create a new MatchRuleBuilder
Trait Implementations§
source§impl Clone for ObjectMatchRule
impl Clone for ObjectMatchRule
source§fn clone(&self) -> ObjectMatchRule
fn clone(&self) -> ObjectMatchRule
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 ObjectMatchRule
impl Debug for ObjectMatchRule
source§impl Default for ObjectMatchRule
impl Default for ObjectMatchRule
source§fn default() -> ObjectMatchRule
fn default() -> ObjectMatchRule
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ObjectMatchRule
impl<'de> Deserialize<'de> for ObjectMatchRule
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 PartialEq for ObjectMatchRule
impl PartialEq for ObjectMatchRule
source§impl Serialize for ObjectMatchRule
impl Serialize for ObjectMatchRule
source§impl Type for ObjectMatchRule
impl Type for ObjectMatchRule
impl Eq for ObjectMatchRule
impl StructuralPartialEq for ObjectMatchRule
Auto Trait Implementations§
impl Freeze for ObjectMatchRule
impl RefUnwindSafe for ObjectMatchRule
impl Send for ObjectMatchRule
impl Sync for ObjectMatchRule
impl Unpin for ObjectMatchRule
impl UnwindSafe for ObjectMatchRule
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.