Expand description
Represents a category in an RSS feed.
Fields
name: String
The name of the category.
domain: Option<String>
The domain for the category.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more