Struct sdml_core::model::definitions::EntityIdentityDef
source · pub struct EntityIdentityDef { /* private fields */ }
Expand description
Corresponds to the definition component within grammar rule entity_identity
.
Implementations§
source§impl EntityIdentityDef
impl EntityIdentityDef
pub fn new<T>(target_type: T) -> Selfwhere T: Into<TypeReference>,
pub const fn new_unknown() -> Self
pub const fn target_cardinality(&self) -> &Cardinality
Trait Implementations§
source§impl Clone for EntityIdentityDef
impl Clone for EntityIdentityDef
source§fn clone(&self) -> EntityIdentityDef
fn clone(&self) -> EntityIdentityDef
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 EntityIdentityDef
impl Debug for EntityIdentityDef
source§impl<'de> Deserialize<'de> for EntityIdentityDef
impl<'de> Deserialize<'de> for EntityIdentityDef
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<EntityIdentityDef> for PropertyRoleDef
impl From<EntityIdentityDef> for PropertyRoleDef
source§fn from(value: EntityIdentityDef) -> Self
fn from(value: EntityIdentityDef) -> Self
Converts to this type from the input type.
source§impl HasSourceSpan for EntityIdentityDef
impl HasSourceSpan for EntityIdentityDef
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 HasType for EntityIdentityDef
impl HasType for EntityIdentityDef
fn target_type(&self) -> &TypeReference
fn set_target_type(&mut self, target_type: TypeReference)
fn is_unknown_type(&self) -> bool
fn is_named_type(&self) -> bool
fn is_mapping_type(&self) -> bool
source§impl References for EntityIdentityDef
impl References for EntityIdentityDef
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 EntityIdentityDef
impl Serialize for EntityIdentityDef
source§impl Validate for EntityIdentityDef
impl Validate for EntityIdentityDef
Auto Trait Implementations§
impl RefUnwindSafe for EntityIdentityDef
impl Send for EntityIdentityDef
impl Sync for EntityIdentityDef
impl Unpin for EntityIdentityDef
impl UnwindSafe for EntityIdentityDef
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