[−][src]Struct rss::TextInput
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]
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");
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]
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");
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]
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");;
pub 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");
pub 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");
impl TextInput
[src]
pub fn from_xml<R: BufRead>(
reader: &mut Reader<R>,
_: Attributes
) -> Result<Self, Error>
[src]
reader: &mut Reader<R>,
_: Attributes
) -> Result<Self, Error>
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
impl RefUnwindSafe for TextInput
impl Send for TextInput
impl Sync for TextInput
impl Unpin for TextInput
impl UnwindSafe for TextInput
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,