Struct rss::TextInput
[−]
[src]
pub struct TextInput { /* fields omitted */ }
Represents a text input for an RSS channel.
Methods
impl TextInput
[src]
fn title(&self) -> &str
[src]
Return the title for this text field.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_title("Input Title"); assert_eq!(text_input.title(), "Input Title");
fn set_title<V>(&mut self, title: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the title for this text field.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_title("Input Title");
fn description(&self) -> &str
[src]
Return the description of this text field.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_description("Input description"); assert_eq!(text_input.description(), "Input description");
fn set_description<V>(&mut self, description: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the description of this text field.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_description("Input description");
fn name(&self) -> &str
[src]
Return the name of the text object in this input.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_name("Input name"); assert_eq!(text_input.name(), "Input name");
fn set_name<V>(&mut self, name: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the name of the text object in this input.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_name("Input name");;
fn link(&self) -> &str
[src]
Return the URL of the GCI script that processes the text input request.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_link("http://example.com/submit"); assert_eq!(text_input.link(), "http://example.com/submit");
fn set_link<V>(&mut self, link: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the URL of the GCI script that processes the text input request.
Examples
use rss::TextInput; let mut text_input = TextInput::default(); text_input.set_link("http://example.com/submit");
Trait Implementations
impl Debug for TextInput
[src]
impl Default for TextInput
[src]
impl Clone for TextInput
[src]
fn clone(&self) -> TextInput
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more