Trait TextInputGetters

Source
pub trait TextInputGetters {
    // Required methods
    fn title(&self) -> String;
    fn description(&self) -> String;
    fn name(&self) -> String;
    fn link(&self) -> String;
}
Expand description

The Getter functions for TextInput

Required Methods§

Source

fn title(&self) -> String

Get the title that exists under TextInput.

Source

fn description(&self) -> String

Get the description that exists under TextInput.

Source

fn name(&self) -> String

Get the name that exists under TextInput.

Get the link that exists under TextInput.

Implementations on Foreign Types§

Source§

impl TextInputGetters for TextInput

Source§

fn title(&self) -> String

Get the title that exists under TextInput.

§Examples
use feed::{TextInputBuilder, TextInputGetters};

let title = "Enter Comment";

let text_input = TextInputBuilder::new()
    .title(title)
    .link("http://www.example.com/feedback")
    .finalize()
    .unwrap();

assert_eq!(title.to_owned(), text_input.title());
Source§

fn description(&self) -> String

Get the description that exists under TextInput.

§Examples
use feed::{TextInputBuilder, TextInputGetters};

let description = "Provided Feedback";

let text_input = TextInputBuilder::new()
    .description(description)
    .link("http://www.example.com/feedback")
    .finalize()
    .unwrap();

assert_eq!(description.to_owned(), text_input.description());
Source§

fn name(&self) -> String

Get the name that exists under TextInput.

§Examples
use feed::{TextInputBuilder, TextInputGetters};

let name = "Comment";

let text_input = TextInputBuilder::new()
    .name(name)
    .link("http://www.example.com/feedback")
    .finalize()
    .unwrap();

assert_eq!(name.to_owned(), text_input.name());

Get the link that exists under TextInput.

§Examples
use feed::{TextInputBuilder, TextInputGetters};

let link = "http://www.example.com/feedback";

let text_input = TextInputBuilder::new()
    .link(link)
    .finalize()
    .unwrap();

assert_eq!(link.to_owned(), text_input.link());

Implementors§