[][src]Struct rss::TextInput

pub struct TextInput { /* fields omitted */ }

Represents a text input for an RSS channel.

Methods

impl TextInput[src]

pub 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");

pub fn set_title<V>(&mut self, title: V) where
    V: Into<String>, 
[src]

Set the title for this text field.

Examples

use rss::TextInput;

let mut text_input = TextInput::default();
text_input.set_title("Input Title");

pub 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");

pub fn set_description<V>(&mut self, description: V) where
    V: Into<String>, 
[src]

Set the description of this text field.

Examples

use rss::TextInput;

let mut text_input = TextInput::default();
text_input.set_description("Input description");

pub 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");

pub fn set_name<V>(&mut self, name: V) where
    V: Into<String>, 
[src]

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");;

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");

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");

impl TextInput[src]

pub fn from_xml<R: BufRead>(
    reader: &mut Reader<R>,
    _: Attributes
) -> Result<Self, Error>
[src]

Builds a TextInput from source XML

Trait Implementations

impl Clone for TextInput[src]

impl Debug for TextInput[src]

impl Default for TextInput[src]

impl PartialEq<TextInput> for TextInput[src]

impl StructuralPartialEq for TextInput[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.