pub struct GroupSelector {
pub ref_type: Option<TypeSelector>,
pub cited: Option<CitedStatus>,
pub field: Option<HashMap<String, FieldMatcher>>,
pub not: Option<Box<GroupSelector>>,
}Expand description
Selector predicate for matching references to groups.
All specified conditions must match (AND logic).
Use the not field for negation-based fallback groups.
Fields§
§ref_type: Option<TypeSelector>Match references by type.
cited: Option<CitedStatus>Match references by citation status.
field: Option<HashMap<String, FieldMatcher>>Match references by field values (e.g., language, keywords).
not: Option<Box<GroupSelector>>Negation for fallback groups. Matches references that do NOT match the nested selector.
Trait Implementations§
Source§impl Clone for GroupSelector
impl Clone for GroupSelector
Source§fn clone(&self) -> GroupSelector
fn clone(&self) -> GroupSelector
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 GroupSelector
impl Debug for GroupSelector
Source§impl Default for GroupSelector
impl Default for GroupSelector
Source§fn default() -> GroupSelector
fn default() -> GroupSelector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GroupSelector
impl<'de> Deserialize<'de> for GroupSelector
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroupSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroupSelector, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GroupSelector
impl Serialize for GroupSelector
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 Freeze for GroupSelector
impl RefUnwindSafe for GroupSelector
impl Send for GroupSelector
impl Sync for GroupSelector
impl Unpin for GroupSelector
impl UnsafeUnpin for GroupSelector
impl UnwindSafe for GroupSelector
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