pub struct CategorizedItemInput {
pub id: String,
pub category: String,
pub embedding: Vec<f64>,
}Expand description
Input type for items consumed by the category-enrichment pipeline.
embedding is the high-dimensional vector that the pipeline projects
onto S²; category is the label the enrichment layer groups by; id
is a stable string returned in query results.
Used as the input shape when (re)building the pipeline from GraphQL
or from in-process Rust callers; the pipeline itself stores categories
and embeddings in parallel Vecs rather than as items, so this type
exists only at the boundary.
Fields§
§id: String§category: String§embedding: Vec<f64>Trait Implementations§
Source§impl Clone for CategorizedItemInput
impl Clone for CategorizedItemInput
Source§fn clone(&self) -> CategorizedItemInput
fn clone(&self) -> CategorizedItemInput
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 CategorizedItemInput
impl Debug for CategorizedItemInput
Source§impl From<&CategorizedItemInput> for CategorizedItemOutput
impl From<&CategorizedItemInput> for CategorizedItemOutput
Source§fn from(i: &CategorizedItemInput) -> Self
fn from(i: &CategorizedItemInput) -> Self
Converts to this type from the input type.
impl InputObjectType for CategorizedItemInput
Source§impl InputType for CategorizedItemInput
impl InputType for CategorizedItemInput
Source§type RawValueType = CategorizedItemInput
type RawValueType = CategorizedItemInput
The raw type used for validator. Read more
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Auto Trait Implementations§
impl Freeze for CategorizedItemInput
impl RefUnwindSafe for CategorizedItemInput
impl Send for CategorizedItemInput
impl Sync for CategorizedItemInput
impl Unpin for CategorizedItemInput
impl UnsafeUnpin for CategorizedItemInput
impl UnwindSafe for CategorizedItemInput
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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