[][src]Struct rss::Guid

pub struct Guid {
    pub value: String,
    pub permalink: bool,
}

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]

Return whether this GUID is a permalink.

Examples

use rss::Guid;

let mut guid = Guid::default();
guid.set_permalink(true);
assert!(guid.is_permalink());

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]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.