pub struct PlaceholderVectorFunctionTaskExpression {
pub input_schema: InputSchema,
pub output_length: Expression,
pub input_split: Expression,
pub input_merge: Expression,
pub skip: Option<Expression>,
pub map: Option<Expression>,
pub input: WithExpression<InputValueExpression>,
pub output: Expression,
}Expand description
Expression for a placeholder vector function task (pre-compilation).
Like VectorFunctionTaskExpression but without owner/repository/commit.
Always produces an equalized vector of length output_length.
Fields§
§input_schema: InputSchemaJSON Schema defining the expected input structure.
output_length: ExpressionExpression computing the expected output vector length.
Receives: input.
input_split: ExpressionExpression transforming input into sub-inputs for swiss system.
Receives: input.
input_merge: ExpressionExpression merging sub-inputs back into one input.
Receives: input (as an array).
skip: Option<Expression>If this expression evaluates to true, skip the task. Receives: input.
map: Option<Expression>Expression that evaluates to the number of mapped task instances.
Each instance receives map as an integer index (0-based).
input: WithExpression<InputValueExpression>Expression for the input to pass to the placeholder function.
Receives: input, map (if mapped).
output: ExpressionExpression to transform the equalized vector output.
Receives: input, output as Vector(equalized).
Implementations§
Source§impl PlaceholderVectorFunctionTaskExpression
impl PlaceholderVectorFunctionTaskExpression
pub fn compile( self, params: &Params<'_, '_>, ) -> Result<PlaceholderVectorFunctionTask, ExpressionError>
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for PlaceholderVectorFunctionTaskExpression
impl<'arbitrary> Arbitrary<'arbitrary> for PlaceholderVectorFunctionTaskExpression
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for PlaceholderVectorFunctionTaskExpression
impl Clone for PlaceholderVectorFunctionTaskExpression
Source§fn clone(&self) -> PlaceholderVectorFunctionTaskExpression
fn clone(&self) -> PlaceholderVectorFunctionTaskExpression
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for PlaceholderVectorFunctionTaskExpression
impl<'de> Deserialize<'de> for PlaceholderVectorFunctionTaskExpression
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>,
Source§impl JsonSchema for PlaceholderVectorFunctionTaskExpression
impl JsonSchema for PlaceholderVectorFunctionTaskExpression
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for PlaceholderVectorFunctionTaskExpression
impl PartialEq for PlaceholderVectorFunctionTaskExpression
Source§fn eq(&self, other: &PlaceholderVectorFunctionTaskExpression) -> bool
fn eq(&self, other: &PlaceholderVectorFunctionTaskExpression) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlaceholderVectorFunctionTaskExpression
Auto Trait Implementations§
impl Freeze for PlaceholderVectorFunctionTaskExpression
impl RefUnwindSafe for PlaceholderVectorFunctionTaskExpression
impl Send for PlaceholderVectorFunctionTaskExpression
impl Sync for PlaceholderVectorFunctionTaskExpression
impl Unpin for PlaceholderVectorFunctionTaskExpression
impl UnsafeUnpin for PlaceholderVectorFunctionTaskExpression
impl UnwindSafe for PlaceholderVectorFunctionTaskExpression
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
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>
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>
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