pub struct Category { /* private fields */ }
Expand description
Represents a category in an RSS feed.
Implementations
sourceimpl Category
impl Category
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Return the name of this category.
Examples
use rss::Category;
let mut category = Category::default();
category.set_name("Technology");
assert_eq!(category.name(), "Technology");
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 this category.
Examples
use rss::Category;
let mut category = Category::default();
category.set_name("Technology");
Trait Implementations
impl StructuralPartialEq for Category
Auto Trait Implementations
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
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