Struct hedwig::validators::prost::ProstDecoder [−][src]
pub struct ProstDecoder<S> { /* fields omitted */ }
This is supported on crate feature
prost
only.Expand description
Validator that decodes data from protobuf payloads using prost
.
Implementations
Create a new decoder with the given SchemaMatcher
pub fn decode<M>(
&self,
msg: ValidatedMessage
) -> Result<M, ProstDecodeError<S::InvalidSchemaError>> where
S: SchemaMatcher<M>,
S::InvalidSchemaError: Error + 'static,
M: Message + Default,
pub fn decode<M>(
&self,
msg: ValidatedMessage
) -> Result<M, ProstDecodeError<S::InvalidSchemaError>> where
S: SchemaMatcher<M>,
S::InvalidSchemaError: Error + 'static,
M: Message + Default,
Decode the given protobuf-encoded message into its structured data
Auto Trait Implementations
impl<S> RefUnwindSafe for ProstDecoder<S> where
S: RefUnwindSafe,
impl<S> Send for ProstDecoder<S> where
S: Send,
impl<S> Sync for ProstDecoder<S> where
S: Sync,
impl<S> Unpin for ProstDecoder<S> where
S: Unpin,
impl<S> UnwindSafe for ProstDecoder<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more