pub struct AnnotationOnlyBody { /* private fields */ }Expand description
Corresponds to the grammar rule annotation_only_body.
Trait Implementations§
Source§impl Clone for AnnotationOnlyBody
impl Clone for AnnotationOnlyBody
Source§fn clone(&self) -> AnnotationOnlyBody
fn clone(&self) -> AnnotationOnlyBody
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 AnnotationOnlyBody
impl Debug for AnnotationOnlyBody
Source§impl Default for AnnotationOnlyBody
impl Default for AnnotationOnlyBody
Source§fn default() -> AnnotationOnlyBody
fn default() -> AnnotationOnlyBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnotationOnlyBody
impl<'de> Deserialize<'de> for AnnotationOnlyBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AnnotationOnlyBody> for Vec<Annotation>
impl From<AnnotationOnlyBody> for Vec<Annotation>
Source§fn from(value: AnnotationOnlyBody) -> Self
fn from(value: AnnotationOnlyBody) -> Self
Converts to this type from the input type.
Source§impl From<Vec<Annotation>> for AnnotationOnlyBody
impl From<Vec<Annotation>> for AnnotationOnlyBody
Source§fn from(annotations: Vec<Annotation>) -> Self
fn from(annotations: Vec<Annotation>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<Annotation> for AnnotationOnlyBody
impl FromIterator<Annotation> for AnnotationOnlyBody
Source§fn from_iter<T: IntoIterator<Item = Annotation>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = Annotation>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl HasAnnotations for AnnotationOnlyBody
impl HasAnnotations for AnnotationOnlyBody
fn has_annotations(&self) -> bool
fn annotation_count(&self) -> usize
fn annotations(&self) -> impl Iterator<Item = &Annotation>
fn annotations_mut(&mut self) -> impl Iterator<Item = &mut Annotation>
fn add_to_annotations<I>(&mut self, value: I)where
I: Into<Annotation>,
fn extend_annotations<I>(&mut self, extension: I)where
I: IntoIterator<Item = Annotation>,
fn with_annotations<I>(self, annotations: I) -> Self
fn has_annotation_properties(&self) -> bool
fn annotation_properties(&self) -> impl Iterator<Item = &AnnotationProperty>
fn has_rdf_type(&self, type_id: &IdentifierReference) -> bool
fn rdf_types(&self) -> impl Iterator<Item = &IdentifierReference>
fn preferred_label(&self) -> impl Iterator<Item = &LanguageString>
fn alternate_labels(&self) -> impl Iterator<Item = &LanguageString>
fn descriptions(&self) -> impl Iterator<Item = &LanguageString>
fn skos_definitions(&self) -> impl Iterator<Item = &LanguageString>
fn has_constraints(&self) -> bool
fn annotation_constraints(&self) -> impl Iterator<Item = &Constraint>
Source§impl HasSourceSpan for AnnotationOnlyBody
impl HasSourceSpan for AnnotationOnlyBody
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
Source§impl References for AnnotationOnlyBody
impl References for AnnotationOnlyBody
fn referenced_annotations<'a>( &'a self, names: &mut BTreeSet<&'a IdentifierReference>, )
fn referenced_types<'a>(&'a self, names: &mut BTreeSet<&'a IdentifierReference>)
Source§impl Serialize for AnnotationOnlyBody
impl Serialize for AnnotationOnlyBody
Source§impl Validate for AnnotationOnlyBody
impl Validate for AnnotationOnlyBody
fn validate( &self, top: &Module, cache: &impl ModuleStore, loader: &impl ModuleLoader, check_constraints: bool, )
Auto Trait Implementations§
impl Freeze for AnnotationOnlyBody
impl RefUnwindSafe for AnnotationOnlyBody
impl Send for AnnotationOnlyBody
impl Sync for AnnotationOnlyBody
impl Unpin for AnnotationOnlyBody
impl UnsafeUnpin for AnnotationOnlyBody
impl UnwindSafe for AnnotationOnlyBody
Blanket Implementations§
Source§impl<A> AnnotationBuilder for Awhere
A: HasAnnotations,
impl<A> AnnotationBuilder for Awhere
A: HasAnnotations,
fn with_predicate<I, V>(self, predicate: I, value: V) -> A
fn with_type<I>(self, name: I) -> Self
fn with_super_class<I>(self, name: I) -> Self
fn with_equivalent_class<I>(self, name: I) -> Self
fn with_super_property<I>(self, name: I) -> Self
fn with_domain<I>(self, name: I) -> Self
fn with_comment<S>(self, comment: S) -> Self
fn with_label<S>(self, label: S) -> Self
fn with_see_also_str(self, resource: &str) -> Selfwhere
Self: Sized,
fn with_see_also(self, resource: Url) -> Selfwhere
Self: Sized,
fn with_see_also_ref<I>(self, resource: I) -> Self
fn with_is_defined_by(self, resource: Url) -> Selfwhere
Self: Sized,
fn with_is_defined_by_str(self, resource: &str) -> Selfwhere
Self: Sized,
fn with_is_defined_by_ref<I>(self, resource: I) -> Self
fn with_range<I>(self, name: I) -> Self
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