pub struct VocabularyHeader {
pub iri: String,
pub name: Option<String>,
pub labels: Vec<LocalizedText>,
pub comments: Vec<LocalizedText>,
}Expand description
Identity + labels of a vocabulary or one of its nodes. No children, no
counts — those live on Vocabulary / VocabularyNode / VocabularyTree.
Fields§
§iri: StringThe vocabulary’s or node’s IRI (e.g. http://rdfh.ch/lists/0838/…).
name: Option<String>Human-readable short name, if the server supplies one.
labels: Vec<LocalizedText>Language-tagged labels (D4: all languages kept, no preference rule).
comments: Vec<LocalizedText>Language-tagged comments (D7: carried, out of the default column set).
Trait Implementations§
Source§impl Clone for VocabularyHeader
impl Clone for VocabularyHeader
Source§fn clone(&self) -> VocabularyHeader
fn clone(&self) -> VocabularyHeader
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 VocabularyHeader
impl Debug for VocabularyHeader
impl Eq for VocabularyHeader
Source§impl PartialEq for VocabularyHeader
impl PartialEq for VocabularyHeader
impl StructuralPartialEq for VocabularyHeader
Auto Trait Implementations§
impl Freeze for VocabularyHeader
impl RefUnwindSafe for VocabularyHeader
impl Send for VocabularyHeader
impl Sync for VocabularyHeader
impl Unpin for VocabularyHeader
impl UnsafeUnpin for VocabularyHeader
impl UnwindSafe for VocabularyHeader
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
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
Compare self to
key and return true if they are equal.