pub struct TextInput {
pub title: String,
pub description: String,
pub name: String,
pub link: String,
}
Expand description
Represents a text input for an RSS channel.
Fields§
§title: String
The label of the Submit button for the text input.
description: String
A description of the text input.
name: String
The name of the text object.
link: String
The URL of the CGI script that processes the text input request.
Implementations§
source§impl 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§
source§impl<'de> Deserialize<'de> for TextInput
impl<'de> Deserialize<'de> for TextInput
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TextInput
impl PartialEq for TextInput
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more