Struct feed::TextInputBuilder [] [src]

pub struct TextInputBuilder { /* fields omitted */ }

This TextInputBuilder struct creates the TextInput.

Methods

impl TextInputBuilder
[src]

Construct a new TextInputBuilder and return default values.

Examples

use feed::TextInputBuilder;

let text_input_builder = TextInputBuilder::new();

Set the title that exists under TextInput.

Examples

use feed::TextInputBuilder;

let mut text_input_builder = TextInputBuilder::new();
text_input_builder.title("Title");

Set the description that exists under TextInput.

Examples

use feed::TextInputBuilder;

let mut text_input_builder = TextInputBuilder::new();
text_input_builder.description("This is a test description.");

Set the name that exists under TextInput.

Examples

use feed::TextInputBuilder;

let mut text_input_builder = TextInputBuilder::new();
text_input_builder.name("Comments");

Set the link that exists under TextInput.

Examples

use feed::TextInputBuilder;

let mut text_input_builder = TextInputBuilder::new();
text_input_builder.link("http://www.example.com/feedback");

Validate the contents of TextInput.

Examples

use feed::TextInputBuilder;

let text_input = TextInputBuilder::new()
        .title("Title")
        .description("This is a test description.")
        .name("Comments")
        .link("http://www.example.com/feedback")
        .validate().unwrap()
        .finalize().unwrap();

Construct the TextInput from the TextInputBuilder.

Examples

use feed::TextInputBuilder;

let text_input = TextInputBuilder::new()
        .title("Title")
        .description("This is a test description.")
        .name("Comments")
        .link("http://www.example.com/feedback")
        .finalize()
        .unwrap();

Trait Implementations

impl Clone for TextInputBuilder
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for TextInputBuilder
[src]

Returns the "default value" for a type. Read more