pub struct PropertySelector {
pub node_path: Vec<StringSelector>,
pub target_properties: StringSelector,
}
Expand description
A selector defining a set of nodes to match, and on those matched nodes a set of named properties to match.
Fields§
§node_path: Vec<StringSelector>
A vector of StringSelectors which serve as a pattern matcher for paths through a hierarchy of named nodes. Each entry in the vector is a selector for a single named node in a data hierarchy. The vector of selectors for named nodes, then, defines a selector on paths through the data hierarchy.
Node paths support wildcarding, which will glob a single level of a node hierarchy. eg: root/a/b//d will match all nodes named d which are below some child of node b. root/a/b/c will match all nodes below b which start with the character “c”.
target_properties: StringSelector
A StringSelector which serves as a pattern matcher for string-named properties on a node in a data hierarchy.
target_properties supports wildcarding, which will match against all properties on any node matched by node_path.
Trait Implementations§
source§impl Clone for PropertySelector
impl Clone for PropertySelector
source§fn clone(&self) -> PropertySelector
fn clone(&self) -> PropertySelector
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PropertySelector
impl Debug for PropertySelector
source§impl Decode<PropertySelector> for PropertySelector
impl Decode<PropertySelector> for PropertySelector
source§impl Encode<PropertySelector> for &PropertySelector
impl Encode<PropertySelector> for &PropertySelector
source§impl<T0: Encode<Vector<StringSelector, 100>>, T1: Encode<StringSelector>> Encode<PropertySelector> for (T0, T1)
impl<T0: Encode<Vector<StringSelector, 100>>, T1: Encode<StringSelector>> Encode<PropertySelector> for (T0, T1)
source§impl PartialEq for PropertySelector
impl PartialEq for PropertySelector
source§fn eq(&self, other: &PropertySelector) -> bool
fn eq(&self, other: &PropertySelector) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for PropertySelector
impl TypeMarker for PropertySelector
§type Owned = PropertySelector
type Owned = PropertySelector
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for PropertySelector
impl ValueTypeMarker for PropertySelector
§type Borrowed<'a> = &'a PropertySelector
type Borrowed<'a> = &'a PropertySelector
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more