pub struct RelationEdge { /* private fields */ }Expand description
RelationEdge
Schema-side relation edge declaration over one or more local component fields. Runtime acceptance still owns durable field IDs and slots; this helper proves arity/order/kind compatibility before a tuple relation shape can be admitted.
Implementations§
Source§impl RelationEdge
impl RelationEdge
Sourcepub const fn new(
ident: &'static str,
target: &'static str,
local_fields: &'static [&'static str],
) -> Self
pub const fn new( ident: &'static str, target: &'static str, local_fields: &'static [&'static str], ) -> Self
Build one relation-edge declaration from a relation name, target entity path, and ordered local component fields.
Sourcepub const fn local_fields(&self) -> &'static [&'static str]
pub const fn local_fields(&self) -> &'static [&'static str]
Borrow ordered local source fields that map to the target primary key.
Trait Implementations§
Source§impl Clone for RelationEdge
impl Clone for RelationEdge
Source§fn clone(&self) -> RelationEdge
fn clone(&self) -> RelationEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelationEdge
impl Debug for RelationEdge
Auto Trait Implementations§
impl Freeze for RelationEdge
impl RefUnwindSafe for RelationEdge
impl Send for RelationEdge
impl Sync for RelationEdge
impl Unpin for RelationEdge
impl UnsafeUnpin for RelationEdge
impl UnwindSafe for RelationEdge
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