[][src]Struct validators::line::Line

pub struct Line { /* fields omitted */ }

Methods

impl Line[src]

pub fn get_line(&self) -> &str[src]

pub fn into_string(self) -> String[src]

pub unsafe fn from_string_unchecked(line: String) -> Line[src]

impl Line[src]

pub fn from_string(line: String) -> Result<Self, LineError>[src]

pub fn from_str(line: &str) -> Result<Self, LineError>[src]

Trait Implementations

impl Validated for Line[src]

impl ValidatedWrapper for Line[src]

type Error = LineError

impl Eq for Line[src]

impl PartialEq<Line> for Line[src]

impl Clone for Line[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Deref for Line[src]

type Target = str

The resulting type after dereferencing.

impl Debug for Line[src]

impl Display for Line[src]

impl Hash for Line[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> FromParam<'a> for Line[src]

type Error = LineError

The associated error to be returned if parsing/validation fails.

impl<'a> FromFormValue<'a> for Line[src]

type Error = LineError

The associated error which can be returned from parsing. It is a good idea to have the return type be or contain an &'v str so that the unparseable string can be examined after a bad parse. Read more

fn default() -> Option<Self>[src]

Returns a default value to be used when the form field does not exist. If this returns None, then the field is required. Otherwise, this should return Some(default_value). The default implementation simply returns None. Read more

impl Serialize for Line[src]

impl<'de> Deserialize<'de> for Line[src]

Auto Trait Implementations

impl Send for Line

impl Sync for Line

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]