pub enum DescriptionPredicate {
Term {
operator: Equality,
terms: Vec<TypedSearchTerm>,
},
Language {
operator: Equality,
codes: Vec<String>,
},
Type {
operator: Equality,
types: Vec<u64>,
},
Dialect {
operator: Equality,
dialects: Vec<(u64, Vec<Acceptability>)>,
},
Active(bool),
Id {
operator: Equality,
ids: Vec<u64>,
},
}Expand description
One description filter with its concept sets and aliases resolved, for
the model; every predicate of one {{ D ... }} must hold for the same
description.
Variants§
Term
The term matches one of the search terms (or, !=, none).
Language
The language code (the primary subtag) is one of codes.
Type
The description type is one of types (SCTIDs).
Dialect
The description is acceptable in one of the language reference sets, with one of the listed acceptabilities when any are listed.
Fields
§
dialects: Vec<(u64, Vec<Acceptability>)>(language reference set SCTID, allowed acceptabilities).
Active(bool)
The description is active (or, false, inactive).
Id
The description identifier is one of ids.
Trait Implementations§
Source§impl Clone for DescriptionPredicate
impl Clone for DescriptionPredicate
Source§fn clone(&self) -> DescriptionPredicate
fn clone(&self) -> DescriptionPredicate
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 DescriptionPredicate
impl Debug for DescriptionPredicate
impl Eq for DescriptionPredicate
Source§impl PartialEq for DescriptionPredicate
impl PartialEq for DescriptionPredicate
impl StructuralPartialEq for DescriptionPredicate
Auto Trait Implementations§
impl Freeze for DescriptionPredicate
impl RefUnwindSafe for DescriptionPredicate
impl Send for DescriptionPredicate
impl Sync for DescriptionPredicate
impl Unpin for DescriptionPredicate
impl UnsafeUnpin for DescriptionPredicate
impl UnwindSafe for DescriptionPredicate
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