pub struct TextInput { /* private fields */ }
Expand description
Represents a text input for an RSS channel.
Implementations
sourceimpl TextInput
impl TextInput
sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
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");
sourcepub fn set_title<V>(&mut self, title: V)where
V: Into<String>,
pub fn set_title<V>(&mut self, title: V)where
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");
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
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");
sourcepub fn set_description<V>(&mut self, description: V)where
V: Into<String>,
pub fn set_description<V>(&mut self, description: V)where
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");
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
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");
sourcepub fn set_name<V>(&mut self, name: V)where
V: Into<String>,
pub fn set_name<V>(&mut self, name: V)where
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");;
Trait Implementations
impl StructuralPartialEq for TextInput
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more