pub struct ProjectionSpec {
pub name: String,
pub roles: BTreeSet<ProjectionRole>,
pub fts: Option<ProjectionFts>,
pub vector: Option<ProjectionVector>,
}Expand description
0.8.20 Slice 15d (R-20-PR / C-1) — a single declarative projection
declaration. HITL-ratified shape (api-surface.md:85-89):
{ name, roles: Set<ProjectionRole>, fts?, vector? }. roles carries SET
semantics (dedup + membership; an attribute can be Filterable AND
Searchable) — encoded here as a sorted, de-duplicated BTreeSet. Named
roles, not kind (kind is the node/edge type discriminator).
Fields§
§name: String§roles: BTreeSet<ProjectionRole>§fts: Option<ProjectionFts>§vector: Option<ProjectionVector>Trait Implementations§
Source§impl Clone for ProjectionSpec
impl Clone for ProjectionSpec
Source§fn clone(&self) -> ProjectionSpec
fn clone(&self) -> ProjectionSpec
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 ProjectionSpec
impl Debug for ProjectionSpec
impl Eq for ProjectionSpec
Source§impl PartialEq for ProjectionSpec
impl PartialEq for ProjectionSpec
impl StructuralPartialEq for ProjectionSpec
Auto Trait Implementations§
impl Freeze for ProjectionSpec
impl RefUnwindSafe for ProjectionSpec
impl Send for ProjectionSpec
impl Sync for ProjectionSpec
impl Unpin for ProjectionSpec
impl UnsafeUnpin for ProjectionSpec
impl UnwindSafe for ProjectionSpec
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