Expand description
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
sourceimpl Guid
impl Guid
sourcepub fn is_permalink(&self) -> bool
pub fn is_permalink(&self) -> bool
Return whether this GUID is a permalink.
Examples
use rss::Guid;
let mut guid = Guid::default();
guid.set_permalink(true);
assert!(guid.is_permalink());
sourcepub fn set_permalink<V>(&mut self, permalink: V) where
V: Into<bool>,
pub fn set_permalink<V>(&mut self, permalink: V) where
V: Into<bool>,
Set whether this GUID is a permalink.
Examples
use rss::Guid;
let mut guid = Guid::default();
guid.set_permalink(true);
Trait Implementations
impl StructuralPartialEq for Guid
Auto Trait Implementations
impl RefUnwindSafe for Guid
impl Send for Guid
impl Sync for Guid
impl Unpin for Guid
impl UnwindSafe for Guid
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