Struct hedwig::validators::prost::ProstValidator [−][src]
pub struct ProstValidator(_);
This is supported on crate feature
prost
only.Expand description
Validator that encodes data into protobuf payloads using prost
.
Implementations
pub fn validate<M, S>(
&self,
id: Uuid,
timestamp: SystemTime,
schema: S,
headers: Headers,
data: &M
) -> Result<ValidatedMessage, ProstValidatorError> where
M: Message,
S: Into<Cow<'static, str>>,
pub fn validate<M, S>(
&self,
id: Uuid,
timestamp: SystemTime,
schema: S,
headers: Headers,
data: &M
) -> Result<ValidatedMessage, ProstValidatorError> where
M: Message,
S: Into<Cow<'static, str>>,
Validate and construct a ValidatedMessage
with a protobuf payload.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ProstValidator
impl Send for ProstValidator
impl Sync for ProstValidator
impl Unpin for ProstValidator
impl UnwindSafe for ProstValidator
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