protovalidate-buffa 0.3.0

Runtime for protoc-gen-protovalidate-buffa — Validate trait, ValidationError types, rule helpers, and the CelScalar / Duration / Timestamp helpers that compile-time-expanded CEL rules call into. No CEL interpreter at runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
use connectrpc::ConnectError;

use crate::ValidationError;

impl ValidationError {
    #[must_use]
    pub fn into_connect_error(self) -> ConnectError {
        ConnectError::invalid_argument(self.to_string())
    }
}