Struct brane_ctl::wizard::validator::FromStrValidator
source · pub struct FromStrValidator<T>where
T: FromStr,{
pub field_name: &'static str,
/* private fields */
}
Expand description
The validator is a wrapper for all types that implement std::str::FromStr
, it uses FromStr
to validate if
the provided input is correct. This assumes that the Result
that FromStr
provides correctly
distinguishes correct from incorrect inputs. If your FromStr
implementation is expensive,
this might come at a performance hit.
Fields§
§field_name: &'static str
Trait Implementations§
source§impl<T> Default for FromStrValidator<T>where
T: FromStr,
impl<T> Default for FromStrValidator<T>where
T: FromStr,
Auto Trait Implementations§
impl<T> Freeze for FromStrValidator<T>
impl<T> RefUnwindSafe for FromStrValidator<T>where
T: RefUnwindSafe,
impl<T> Send for FromStrValidator<T>where
T: Send,
impl<T> Sync for FromStrValidator<T>where
T: Sync,
impl<T> Unpin for FromStrValidator<T>where
T: Unpin,
impl<T> UnwindSafe for FromStrValidator<T>where
T: 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