Struct rss::Guid
[−]
[src]
pub struct Guid { /* fields omitted */ }
Represents the GUID of an RSS item.
Methods
impl Guid
[src]
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());
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);
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");
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 Debug for Guid
[src]
impl Clone for Guid
[src]
fn clone(&self) -> Guid
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Guid
[src]
fn eq(&self, __arg_0: &Guid) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Guid) -> bool
[src]
This method tests for !=
.