[−][src]Struct rss::Guid
Represents the GUID of an RSS item.
Methods
impl Guid
[src]
pub fn is_permalink(&self) -> bool
[src]
Return whether this GUID is a permalink.
Examples
use rss::Guid; let mut guid = Guid::default(); guid.set_permalink(true); assert!(guid.is_permalink());
pub fn set_permalink<V>(&mut self, permalink: V) where
V: Into<bool>,
[src]
V: Into<bool>,
Set whether this GUID is a permalink.
Examples
use rss::Guid; let mut guid = Guid::default(); guid.set_permalink(true);
pub fn value(&self) -> &str
[src]
Return the value of this GUID.
Examples
use rss::Guid; let mut guid = Guid::default(); guid.set_value("00000000-0000-0000-0000-00000000000"); assert_eq!(guid.value(), "00000000-0000-0000-0000-00000000000");
pub fn set_value<V>(&mut self, value: V) where
V: Into<String>,
[src]
V: Into<String>,
Set the value of this GUID.
Examples
use rss::Guid; let mut guid = Guid::default(); guid.set_value("00000000-0000-0000-0000-00000000000");
Trait Implementations
impl Clone for Guid
[src]
fn clone(&self) -> Guid
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Guid> for Guid
[src]
impl Default for Guid
[src]
impl Debug for Guid
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,