Struct sdml_core::model::definitions::EntityBody
source · pub struct EntityBody { /* private fields */ }
Expand description
Corresponds to the grammar rule entity_body
.
Implementations§
source§impl EntityBody
impl EntityBody
pub fn new(identity: EntityIdentity) -> Self
pub const fn identity(&self) -> &EntityIdentity
pub fn set_identity(&mut self, identity: EntityIdentity)
Trait Implementations§
source§impl Clone for EntityBody
impl Clone for EntityBody
source§fn clone(&self) -> EntityBody
fn clone(&self) -> EntityBody
Returns a copy of the value. Read more
1.0.0 · 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 EntityBody
impl Debug for EntityBody
source§impl<'de> Deserialize<'de> for EntityBody
impl<'de> Deserialize<'de> for EntityBody
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 HasAnnotations for EntityBody
impl HasAnnotations for EntityBody
fn has_annotations(&self) -> bool
fn annotations_len(&self) -> usize
fn annotations(&self) -> Box<dyn Iterator<Item = &Annotation> + '_>
fn annotations_mut(&mut self) -> Box<dyn 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 has_annotation_properties(&self) -> bool
fn annotation_properties( &self ) -> Box<dyn Iterator<Item = &AnnotationProperty> + '_>
fn has_rdf_type(&self, type_id: &IdentifierReference) -> bool
fn rdf_types(&self) -> Box<dyn Iterator<Item = &IdentifierReference> + '_>
fn preferred_label(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn alternate_labels(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn descriptions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn definitions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn has_constraints(&self) -> bool
fn annotation_constraints<I>( &self ) -> Box<dyn Iterator<Item = &Constraint> + '_>
source§impl HasMembers for EntityBody
impl HasMembers for EntityBody
fn has_members(&self) -> bool
fn members_len(&self) -> usize
fn members(&self) -> Box<dyn Iterator<Item = &Member> + '_>
fn members_mut(&mut self) -> Box<dyn Iterator<Item = &mut Member> + '_>
fn add_to_members(&mut self, value: Member)
fn extend_members<I>(&mut self, extension: I)where
I: IntoIterator<Item = Member>,
source§impl HasOptionalBody<EntityBody> for EntityDef
impl HasOptionalBody<EntityBody> for EntityDef
source§impl HasSourceSpan for EntityBody
impl HasSourceSpan for EntityBody
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 MaybeIncomplete for EntityBody
impl MaybeIncomplete for EntityBody
fn is_incomplete(&self, top: &Module, cache: &ModuleCache) -> bool
source§impl References for EntityBody
impl References for EntityBody
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference> )
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
source§impl Serialize for EntityBody
impl Serialize for EntityBody
source§impl Validate for EntityBody
impl Validate for EntityBody
fn validate( &self, top: &Module, cache: &ModuleCache, loader: &impl ModuleLoader, check_constraints: bool )
Auto Trait Implementations§
impl RefUnwindSafe for EntityBody
impl Send for EntityBody
impl Sync for EntityBody
impl Unpin for EntityBody
impl UnwindSafe for EntityBody
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