Struct brane_ctl::wizard::validator::MapValidator
source · pub struct MapValidator<V1, V2>{
pub separator: String,
pub left_validator: V1,
pub right_validator: V2,
pub allow_empty: bool,
}
Expand description
The map validator can validate mappings from between different types of values. By default
these values are separated by a :
, but this is configurable using the separator
field.
Fields§
§separator: String
§left_validator: V1
§right_validator: V2
§allow_empty: bool
Trait Implementations§
source§impl<V1, V2> Default for MapValidator<V1, V2>
impl<V1, V2> Default for MapValidator<V1, V2>
source§impl<V1, V2> InputValidator<String> for MapValidator<V1, V2>
impl<V1, V2> InputValidator<String> for MapValidator<V1, V2>
Auto Trait Implementations§
impl<V1, V2> Freeze for MapValidator<V1, V2>
impl<V1, V2> RefUnwindSafe for MapValidator<V1, V2>where
V1: RefUnwindSafe,
V2: RefUnwindSafe,
impl<V1, V2> Send for MapValidator<V1, V2>
impl<V1, V2> Sync for MapValidator<V1, V2>
impl<V1, V2> Unpin for MapValidator<V1, V2>
impl<V1, V2> UnwindSafe for MapValidator<V1, V2>where
V1: UnwindSafe,
V2: UnwindSafe,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more