pub struct Record<'a> { /* private fields */ }Expand description
A read-only view of a current record. Text is decoded, plain, and untrusted.
Implementations§
Source§impl<'a> Record<'a>
impl<'a> Record<'a>
Sourcepub const fn state(self) -> State
pub const fn state(self) -> State
Returns the current state; clear is a removal action and is never stored.
Sourcepub fn title(self) -> Option<&'a str>
pub fn title(self) -> Option<&'a str>
Returns the decoded label, preserving absent and explicitly empty text.
Sourcepub fn message(self) -> Option<&'a str>
pub fn message(self) -> Option<&'a str>
Returns the decoded message, preserving absent and explicitly empty text.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnsafeUnpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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