pub struct LocatorPattern {
pub kinds: Vec<LocatorType>,
pub type_class: Option<TypeClass>,
pub order: Vec<LocatorType>,
pub delimiter: String,
pub label_repeat: LabelRepeat,
pub unknown_fields: BTreeMap<String, Value>,
}Expand description
A pattern matching a specific combination of LocatorType values.
Patterns are tested in declaration order; first match wins.
Fields§
§kinds: Vec<LocatorType>The set of LocatorType values this pattern matches (order-insensitive).
type_class: Option<TypeClass>Optional gate on reference type class.
order: Vec<LocatorType>Rendering order of segments when pattern matches.
delimiter: StringDelimiter between segments (default: “, “).
label_repeat: LabelRepeatWhether labels appear on every segment, only the first, or none.
unknown_fields: BTreeMap<String, Value>Forward-compat: captures unknown keys when an older engine reads a
style produced by a newer schema. Empty by default; treated as a
SoftDegrade signal. See docs/specs/FORWARD_COMPATIBILITY.md.
Trait Implementations§
Source§impl Clone for LocatorPattern
impl Clone for LocatorPattern
Source§fn clone(&self) -> LocatorPattern
fn clone(&self) -> LocatorPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LocatorPattern
impl Debug for LocatorPattern
Source§impl<'de> Deserialize<'de> for LocatorPattern
impl<'de> Deserialize<'de> for LocatorPattern
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocatorPattern, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocatorPattern, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LocatorPattern
impl PartialEq for LocatorPattern
Source§fn eq(&self, other: &LocatorPattern) -> bool
fn eq(&self, other: &LocatorPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocatorPattern
impl Serialize for LocatorPattern
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
impl StructuralPartialEq for LocatorPattern
Auto Trait Implementations§
impl Freeze for LocatorPattern
impl RefUnwindSafe for LocatorPattern
impl Send for LocatorPattern
impl Sync for LocatorPattern
impl Unpin for LocatorPattern
impl UnsafeUnpin for LocatorPattern
impl UnwindSafe for LocatorPattern
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