pub struct LocatorConfig {
pub default_label_form: LabelForm,
pub range_format: PageRangeFormat,
pub strip_label_periods: Option<bool>,
pub kinds: HashMap<LocatorType, LocatorKindConfig>,
pub patterns: Vec<LocatorPattern>,
pub fallback_delimiter: String,
pub unknown_fields: BTreeMap<String, Value>,
}Expand description
Top-level locator rendering configuration.
Fields§
§default_label_form: LabelFormDefault label form for all locator kinds (default: Short).
range_format: PageRangeFormatRange format for all locator kinds (default: Expanded).
strip_label_periods: Option<bool>Strip trailing periods from labels globally (e.g., “p.” → “p”).
kinds: HashMap<LocatorType, LocatorKindConfig>Per-kind configuration overrides.
patterns: Vec<LocatorPattern>Patterns for compound locators and type-specific rendering.
fallback_delimiter: StringFallback delimiter for unmatched compound locators (default: “, “).
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 LocatorConfig
impl Clone for LocatorConfig
Source§fn clone(&self) -> LocatorConfig
fn clone(&self) -> LocatorConfig
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 LocatorConfig
impl Debug for LocatorConfig
Source§impl Default for LocatorConfig
impl Default for LocatorConfig
Source§fn default() -> LocatorConfig
fn default() -> LocatorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocatorConfig
impl<'de> Deserialize<'de> for LocatorConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocatorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocatorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LocatorConfig
impl PartialEq for LocatorConfig
Source§fn eq(&self, other: &LocatorConfig) -> bool
fn eq(&self, other: &LocatorConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocatorConfig
impl Serialize for LocatorConfig
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 LocatorConfig
Auto Trait Implementations§
impl Freeze for LocatorConfig
impl RefUnwindSafe for LocatorConfig
impl Send for LocatorConfig
impl Sync for LocatorConfig
impl Unpin for LocatorConfig
impl UnsafeUnpin for LocatorConfig
impl UnwindSafe for LocatorConfig
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