pub struct QueryPipelineBuilder { /* private fields */ }Expand description
Builder for QueryPipeline.
Implementations§
Source§impl QueryPipelineBuilder
impl QueryPipelineBuilder
Sourcepub fn with_resolver(self, resolver: impl CodeResolver + 'static) -> Self
pub fn with_resolver(self, resolver: impl CodeResolver + 'static) -> Self
Register an additional resolver. Called after QueryPipeline::builder.
Sourcepub fn with_extractor(self, extractor: impl BuiltinExtractor + 'static) -> Self
pub fn with_extractor(self, extractor: impl BuiltinExtractor + 'static) -> Self
Register an additional extractor.
Sourcepub fn with_middleware(self, middleware: impl QueryMiddleware + 'static) -> Self
pub fn with_middleware(self, middleware: impl QueryMiddleware + 'static) -> Self
Register a middleware. Applied in order after query execution.
Sourcepub fn build(self) -> QueryPipeline
pub fn build(self) -> QueryPipeline
Build the pipeline, loading all annotations from the project.
Auto Trait Implementations§
impl Freeze for QueryPipelineBuilder
impl !RefUnwindSafe for QueryPipelineBuilder
impl Send for QueryPipelineBuilder
impl Sync for QueryPipelineBuilder
impl Unpin for QueryPipelineBuilder
impl UnsafeUnpin for QueryPipelineBuilder
impl !UnwindSafe for QueryPipelineBuilder
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> 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