Enum sdml_core::model::definitions::RdfDef
source · pub enum RdfDef {
Class(RdfDefBody),
Property(RdfDefBody),
}
Expand description
Corresponds to the grammar rule rdf_thing_def
.
Variants§
Class(RdfDefBody)
Property(RdfDefBody)
Trait Implementations§
source§impl<'de> Deserialize<'de> for RdfDef
impl<'de> Deserialize<'de> for RdfDef
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<RdfDef> for Definition
impl From<RdfDef> for Definition
source§impl HasName for RdfDef
impl HasName for RdfDef
source§fn name(&self) -> &Identifier
fn name(&self) -> &Identifier
Get the name of the enclosing type.
source§fn set_name(&mut self, name: Identifier)
fn set_name(&mut self, name: Identifier)
Set the name of the enclosing type.
source§impl HasSourceSpan for RdfDef
impl HasSourceSpan for RdfDef
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 RdfDef
impl References for RdfDef
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference> )
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
Auto Trait Implementations§
impl RefUnwindSafe for RdfDef
impl Send for RdfDef
impl Sync for RdfDef
impl Unpin for RdfDef
impl UnwindSafe for RdfDef
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