pub struct Prefix<'src> {
pub nick: Option<&'src str>,
pub user: Option<&'src str>,
pub host: &'src str,
}Expand description
A message prefix.
:nick!user@hostFields§
§nick: Option<&'src str>The nick part of the prefix.
user: Option<&'src str>The user part of the prefix.
host: &'src strThe host part of the prefix.
Trait Implementations§
impl<'src> Eq for Prefix<'src>
impl<'src> StructuralPartialEq for Prefix<'src>
Auto Trait Implementations§
impl<'src> Freeze for Prefix<'src>
impl<'src> RefUnwindSafe for Prefix<'src>
impl<'src> Send for Prefix<'src>
impl<'src> Sync for Prefix<'src>
impl<'src> Unpin for Prefix<'src>
impl<'src> UnwindSafe for Prefix<'src>
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