pub struct ValidateFactory { /* private fields */ }Implementations§
Source§impl ValidateFactory
impl ValidateFactory
pub fn new(schemas: Arc<SchemaRegistry>) -> Self
Trait Implementations§
Source§impl PipeFactory for ValidateFactory
Available on crate feature std only.
impl PipeFactory for ValidateFactory
Available on crate feature
std only.fn name(&self) -> &str
Source§fn build(
&self,
spec: &Value,
inner: Option<PipeHandle>,
) -> Pin<Box<dyn Future<Output = Result<PipeHandle, ProximaError>> + Send + '_>>
fn build( &self, spec: &Value, inner: Option<PipeHandle>, ) -> Pin<Box<dyn Future<Output = Result<PipeHandle, ProximaError>> + Send + '_>>
Build a Pipe from a config spec.
inner carries the next
stage in the chain for wrapping pipes (auth, retry, validate,
transform, …); terminal pipes (synth, http, kv, …) ignore it.
A wrapping factory called with inner: None should error; a
terminal factory called with inner: Some(_) may either ignore
or error — convention is ignore. Read moreAuto Trait Implementations§
impl Freeze for ValidateFactory
impl RefUnwindSafe for ValidateFactory
impl Send for ValidateFactory
impl Sync for ValidateFactory
impl Unpin for ValidateFactory
impl UnsafeUnpin for ValidateFactory
impl UnwindSafe for ValidateFactory
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