[][src]Struct oration::data::FormInput

pub struct FormInput {
    pub comment: String,
    pub parent: Option<i32>,
    pub name: Option<String>,
    pub email: Option<String>,
    pub url: Option<String>,
    pub title: String,
    pub path: String,
}

Incoming data from the web based form for a new comment.

Fields

Comment from textarea.

Parent comment if any.

Optional name.

Optional email.

Optional website.

Title of post.

Path of post.

Methods

impl FormInput
[src]

Yields the senders name with a default if is empty.

Yields the senders email address with a default if is empty.

Trait Implementations

impl<'rocket> FromForm<'rocket> for FormInput
[src]

Parses an instance of Self from the iterator of form items it. Read more

The associated error to be returned when parsing fails.

impl Debug for FormInput
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for FormInput

impl Sync for FormInput