pub struct SchemaSet { /* private fields */ }
Implementations§
source§impl SchemaSet
impl SchemaSet
pub fn new(schemata: Vec<Schema>) -> Self
pub fn new_unchecked(schemata: Vec<Schema>) -> Self
pub fn sanitize(&self, tmiv: &Tmiv) -> Result<Tmiv, String>
pub fn validate(&self, normalized_tmiv: &Tmiv) -> Result<(), String>
pub fn find_schema_by_name(&self, field_name: &str) -> Option<&Schema>
Trait Implementations§
source§impl CheckTmivName for SchemaSet
impl CheckTmivName for SchemaSet
fn check_tmiv_name(&self, tmiv_name: &str) -> bool
Auto Trait Implementations§
impl Freeze for SchemaSet
impl RefUnwindSafe for SchemaSet
impl Send for SchemaSet
impl Sync for SchemaSet
impl Unpin for SchemaSet
impl UnwindSafe for SchemaSet
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request