pub struct ValidateConfig {
pub schema: SchemaRef,
}Expand description
Typed config surface for the validate middleware. The SchemaRegistry is
runtime state supplied at materialisation (not serialisable data), mirroring
how callback resolves its function from a registry.
Fields§
§schema: SchemaRefImplementations§
Source§impl ValidateConfig
impl ValidateConfig
Sourcepub fn from_config(
self,
inner: PipeHandle,
schemas: &Arc<SchemaRegistry>,
) -> Result<Validate<PipeHandle, ValidateOp>, ProximaError>
pub fn from_config( self, inner: PipeHandle, schemas: &Arc<SchemaRegistry>, ) -> Result<Validate<PipeHandle, ValidateOp>, ProximaError>
Materialise the validate middleware around inner, resolving a named
schema against schemas.
Trait Implementations§
Source§impl Clone for ValidateConfig
impl Clone for ValidateConfig
Source§impl Debug for ValidateConfig
impl Debug for ValidateConfig
Source§impl<'de> Deserialize<'de> for ValidateConfig
impl<'de> Deserialize<'de> for ValidateConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ValidateConfig
impl RefUnwindSafe for ValidateConfig
impl Send for ValidateConfig
impl Sync for ValidateConfig
impl Unpin for ValidateConfig
impl UnsafeUnpin for ValidateConfig
impl UnwindSafe for ValidateConfig
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