pub enum RefTarget {
TableRow {
table: String,
row_id: u64,
},
Node {
collection: String,
node_id: EntityId,
},
Edge {
collection: String,
edge_id: EntityId,
},
Vector {
collection: String,
vector_id: EntityId,
},
Entity {
collection: String,
entity_id: EntityId,
},
}Expand description
Reference target for metadata cross-links
Variants§
TableRow
Reference to a table row
Node
Reference to a graph node
Edge
Reference to a graph edge
Vector
Reference to a vector
Entity
Generic entity reference
Implementations§
Trait Implementations§
Source§impl From<RefTarget> for MetadataValue
impl From<RefTarget> for MetadataValue
impl StructuralPartialEq for RefTarget
Auto Trait Implementations§
impl Forget for RefTarget
impl Freeze for RefTarget
impl Move for RefTarget
impl RefUnwindSafe for RefTarget
impl Send for RefTargetwhere
RawVecInner: Send,
impl Sync for RefTargetwhere
RawVecInner: Sync,
impl Unpin for RefTarget
impl UnsafeUnpin for RefTarget
impl UnwindSafe for RefTargetwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more