pub struct MiddlewareMetadata {
pub kind: MiddlewareKind,
pub stateless: bool,
pub needs_body: bool,
pub validate_args: fn(&Value) -> Result<(), Error>,
}Fields§
§kind: MiddlewareKind§stateless: bool§needs_body: bool§validate_args: fn(&Value) -> Result<(), Error>Implementations§
Source§impl MiddlewareMetadata
impl MiddlewareMetadata
Sourcepub fn from_plugin(export: &PluginExport) -> Self
pub fn from_plugin(export: &PluginExport) -> Self
Build a middleware-metadata record from a plugin export. Used by
the daemon-side metadata provider to satisfy compile-stage
queries for <module>:<export> references — the plugin’s
kind / stateless / needs_body map directly onto the
middleware-metadata shape; inspects is plugin-internal and
has no analogue here.
Auto Trait Implementations§
impl Freeze for MiddlewareMetadata
impl RefUnwindSafe for MiddlewareMetadata
impl Send for MiddlewareMetadata
impl Sync for MiddlewareMetadata
impl Unpin for MiddlewareMetadata
impl UnsafeUnpin for MiddlewareMetadata
impl UnwindSafe for MiddlewareMetadata
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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