[][src]Struct ellidri::message::Tag

pub struct Tag<'a> {
    pub key: &'a str,
    pub value: Option<&'a str>,
    pub is_client: bool,
}

A message tag.

Message tagging is an addition of an IRCv3 specification. Refer to the following page for more details on message tags: https://ircv3.net/specs/extensions/message-tags.

Fields

key: &'a str

The key of the tag.

value: Option<&'a str>

The value of the tag, or None when the tag has no value.

is_client: bool

Whether this is a client tag (has + prepended to its key).

Methods

impl<'a> Tag<'a>[src]

pub fn parse(buf: &'a str) -> Self[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Tag<'a>

impl<'a> Send for Tag<'a>

impl<'a> Sync for Tag<'a>

impl<'a> Unpin for Tag<'a>

impl<'a> UnwindSafe for Tag<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,