pub struct EntityRelationDescription { /* private fields */ }Expand description
EntityRelationDescription
One relation-field projection inside EntitySchemaDescription.
Captures relation target identity plus strength/cardinality metadata.
Implementations§
Source§impl EntityRelationDescription
impl EntityRelationDescription
Sourcepub const fn new(
field: String,
target_path: String,
target_entity_name: String,
target_store_path: String,
strength: EntityRelationStrength,
cardinality: EntityRelationCardinality,
) -> Self
pub const fn new( field: String, target_path: String, target_entity_name: String, target_store_path: String, strength: EntityRelationStrength, cardinality: EntityRelationCardinality, ) -> Self
Construct one relation description entry.
Sourcepub const fn target_path(&self) -> &str
pub const fn target_path(&self) -> &str
Borrow the relation target path.
Sourcepub const fn target_entity_name(&self) -> &str
pub const fn target_entity_name(&self) -> &str
Borrow the relation target entity name.
Sourcepub const fn target_store_path(&self) -> &str
pub const fn target_store_path(&self) -> &str
Borrow the relation target store path.
Sourcepub const fn strength(&self) -> EntityRelationStrength
pub const fn strength(&self) -> EntityRelationStrength
Return relation strength.
Sourcepub const fn cardinality(&self) -> EntityRelationCardinality
pub const fn cardinality(&self) -> EntityRelationCardinality
Return relation cardinality.
Trait Implementations§
Source§impl Clone for EntityRelationDescription
impl Clone for EntityRelationDescription
Source§fn clone(&self) -> EntityRelationDescription
fn clone(&self) -> EntityRelationDescription
Returns a duplicate 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 EntityRelationDescription
impl Debug for EntityRelationDescription
Source§impl<'de> Deserialize<'de> for EntityRelationDescription
impl<'de> Deserialize<'de> for EntityRelationDescription
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
impl Eq for EntityRelationDescription
impl StructuralPartialEq for EntityRelationDescription
Auto Trait Implementations§
impl Freeze for EntityRelationDescription
impl RefUnwindSafe for EntityRelationDescription
impl Send for EntityRelationDescription
impl Sync for EntityRelationDescription
impl Unpin for EntityRelationDescription
impl UnsafeUnpin for EntityRelationDescription
impl UnwindSafe for EntityRelationDescription
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