pub enum Representation {
StillImage,
MovingImage,
Audio,
Document,
Archive,
Text,
}Expand description
Representation kind of a resource-type — what kind of file it holds.
Detected from the presence of the corresponding knora-api file-value
property restriction in the class’s flattened owl:Restriction set (Decision
5 — transitive-safe). Only present on resource-types that are file
representations; non-asset types carry None on ResourceTypeDetail.
Derives Copy (fieldless). Display produces a kebab string. No serde
derive. ValueType and Representation overlap semantically (both carry
still-image / … variants) but are independent types — field-level vs
resource-type-level.
Variants§
StillImage
Still-image representation (knora-api:hasStillImageFileValue). Display: "still-image".
MovingImage
Moving-image representation (knora-api:hasMovingImageFileValue). Display: "moving-image".
Audio
Audio representation (knora-api:hasAudioFileValue). Display: "audio".
Document
Document representation (knora-api:hasDocumentFileValue). Display: "document".
Archive
Archive representation (knora-api:hasArchiveFileValue). Display: "archive".
Text
Text representation (knora-api:hasTextFileValue). Display: "text".
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Representation
Source§impl Debug for Representation
impl Debug for Representation
Source§impl Display for Representation
impl Display for Representation
impl Eq for Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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.