pub enum ValueType {
Show 17 variants
Text,
Integer,
Decimal,
Boolean,
Date,
Time,
Uri,
Color,
Geoname,
ListItem,
Link,
StillImage,
MovingImage,
Audio,
Document,
Archive,
Other(String),
}Expand description
The kind of value a field holds — the dsp-cli vocabulary for DSP-API’s
knora-api:objectType.
Named variants cover all 16 value types from the CONTEXT.md “Value Type”
entry. Other(String) provides graceful degradation for any objectType
outside this set (e.g. GeomValue, IntervalValue, TextFileValue) — the
string is a kebab-cased local name derived by the client at the ADR-0001
boundary. Display writes the kebab string; Other(s) writes s verbatim
(the client builds the kebab form). Does NOT derive Copy (has Other(String)).
No serde derive.
Variants§
Text
Plain text (knora-api:TextValue).
Integer
Integer number (knora-api:IntValue).
Decimal
Decimal number (knora-api:DecimalValue).
Boolean
Boolean (knora-api:BooleanValue).
Date
Calendar date (knora-api:DateValue).
Time
Point in time (knora-api:TimeValue).
Uri
URI (knora-api:UriValue).
Color
Color value (knora-api:ColorValue).
Geoname
Geonames location reference (knora-api:GeonameValue).
ListItem
Reference to a list node (knora-api:ListValue).
Link
Link to another resource (knora-api:isLinkProperty; objectType is the
target resource class, not a …Value type).
StillImage
Still-image file (knora-api:StillImageFileValue).
MovingImage
Moving-image file (knora-api:MovingImageFileValue).
Audio
Audio file (knora-api:AudioFileValue).
Document
Document file (knora-api:DocumentFileValue).
Archive
Archive file (knora-api:ArchiveFileValue).
Other(String)
Any objectType not covered by the 16 named variants (e.g. geom,
interval, text-file). The string is already in kebab form — Display
writes it verbatim.
Implementations§
Trait Implementations§
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnsafeUnpin for ValueType
impl UnwindSafe for ValueType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.