pub struct Guid {
pub value: String,
pub permalink: bool,
}
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§
source§impl 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§
source§impl<'de> Deserialize<'de> for Guid
impl<'de> Deserialize<'de> for Guid
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Guid
impl PartialEq for Guid
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more