Struct brane_ctl::wizard::validator::RangeValidator
source · pub struct RangeValidator<V>where
V: InputValidator<String>,{
pub separator: String,
pub segment_validator: V,
pub allow_empty: bool,
}
Expand description
A validator that checks whether the provided input is a valid range. It by default uses a -
as range seperator, but this is configurable using the seperator field. It allows whitespace
around the range values. The segment validator validates the separate parts of the range using
the same instance.
Fields§
§separator: String
§segment_validator: V
§allow_empty: bool
Trait Implementations§
source§impl<V> Default for RangeValidator<V>
impl<V> Default for RangeValidator<V>
Auto Trait Implementations§
impl<V> Freeze for RangeValidator<V>where
V: Freeze,
impl<V> RefUnwindSafe for RangeValidator<V>where
V: RefUnwindSafe,
impl<V> Send for RangeValidator<V>where
V: Send,
impl<V> Sync for RangeValidator<V>where
V: Sync,
impl<V> Unpin for RangeValidator<V>where
V: Unpin,
impl<V> UnwindSafe for RangeValidator<V>where
V: 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