[−][src]Struct rss::Guid
Represents the GUID of an RSS item.
Fields
value: String
The value of the GUID.
permalink: bool
Indicates if the GUID is a permalink.
Implementations
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");
impl Guid
[src]
pub fn from_xml<R: BufRead>(
reader: &mut Reader<R>,
atts: Attributes<'_>
) -> Result<Self, Error>
[src]
reader: &mut Reader<R>,
atts: Attributes<'_>
) -> Result<Self, Error>
Builds a Guid from source XML
Trait Implementations
impl Clone for Guid
[src]
impl Debug for Guid
[src]
impl Default for Guid
[src]
impl PartialEq<Guid> for Guid
[src]
impl StructuralPartialEq for Guid
[src]
Auto Trait Implementations
impl RefUnwindSafe for Guid
[src]
impl Send for Guid
[src]
impl Sync for Guid
[src]
impl Unpin for Guid
[src]
impl UnwindSafe for Guid
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,