Enum sdml_core::model::IdentityMemberInner
source · pub enum IdentityMemberInner {
PropertyRole(Identifier),
Defined(IdentityMemberDef),
}
Expand description
Corresponds to the choice component within grammar rule identity_member
.
Variants§
PropertyRole(Identifier)
Defined(IdentityMemberDef)
Implementations§
source§impl IdentityMemberInner
impl IdentityMemberInner
pub fn is_property_role(&self) -> bool
pub fn as_property_role(&self) -> Option<&Identifier>
pub fn is_defined(&self) -> bool
pub fn as_defined(&self) -> Option<&IdentityMemberDef>
pub fn target_type(&self) -> Option<&IdentifierReference>
pub fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
pub fn is_complete(&self) -> bool
Trait Implementations§
source§impl Clone for IdentityMemberInner
impl Clone for IdentityMemberInner
source§fn clone(&self) -> IdentityMemberInner
fn clone(&self) -> IdentityMemberInner
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 IdentityMemberInner
impl Debug for IdentityMemberInner
source§impl<'de> Deserialize<'de> for IdentityMemberInner
impl<'de> Deserialize<'de> for IdentityMemberInner
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<Identifier> for IdentityMemberInner
impl From<Identifier> for IdentityMemberInner
source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
source§impl From<IdentityMemberDef> for IdentityMemberInner
impl From<IdentityMemberDef> for IdentityMemberInner
source§fn from(value: IdentityMemberDef) -> Self
fn from(value: IdentityMemberDef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for IdentityMemberInner
impl Send for IdentityMemberInner
impl Sync for IdentityMemberInner
impl Unpin for IdentityMemberInner
impl UnwindSafe for IdentityMemberInner
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