pub struct NotificationRecord {
pub summary: String,
pub body: String,
}Expand description
Per-record state captured by InMemorySink for assertion in tests.
Not exposed in production callers — production callers only consume
the Result from NotificationSink::show.
Fields§
§summary: StringFirst line / title of the notification (e.g. "IronTide").
body: StringBody text — torrent name + status, already HTML-escaped via
sanitize_notification_text.
Trait Implementations§
Source§impl Clone for NotificationRecord
impl Clone for NotificationRecord
Source§fn clone(&self) -> NotificationRecord
fn clone(&self) -> NotificationRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationRecord
impl Debug for NotificationRecord
Source§impl PartialEq for NotificationRecord
impl PartialEq for NotificationRecord
Source§fn eq(&self, other: &NotificationRecord) -> bool
fn eq(&self, other: &NotificationRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NotificationRecord
impl StructuralPartialEq for NotificationRecord
Auto Trait Implementations§
impl Freeze for NotificationRecord
impl RefUnwindSafe for NotificationRecord
impl Send for NotificationRecord
impl Sync for NotificationRecord
impl Unpin for NotificationRecord
impl UnsafeUnpin for NotificationRecord
impl UnwindSafe for NotificationRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.