Struct rss2tg::Notification
[−]
[src]
pub struct Notification { /* fields omitted */ }
Represents a notification.
Methods
impl Notification
[src]
pub fn new(text_: String, guid_: u64) -> Notification
[src]
Creates new instanse of notification
pub fn text(&self) -> &String
[src]
Returns text of notification.
pub fn guid(&self) -> &u64
[src]
Returns guid sourced from RSS.
Trait Implementations
impl Debug for Notification
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Notification
[src]
impl PartialOrd for Notification
[src]
fn partial_cmp(&self, other: &Notification) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Notification
[src]
fn cmp(&self, other: &Notification) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more