pub struct CtcpMessage {
pub command: String,
pub arg: String,
}Expand description
A parsed CTCP (Client-to-Client Protocol) message extracted from the
trailing parameter of a PRIVMSG or NOTICE.
CTCP messages are delimited by \x01 bytes:
\x01COMMAND [optional args]\x01
Fields§
§command: StringThe CTCP command in uppercase (e.g. "PING", "VERSION", "ACTION").
arg: StringOptional argument following the command (empty string when absent).
Implementations§
Trait Implementations§
Source§impl Clone for CtcpMessage
impl Clone for CtcpMessage
Source§fn clone(&self) -> CtcpMessage
fn clone(&self) -> CtcpMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 CtcpMessage
impl Debug for CtcpMessage
Source§impl PartialEq for CtcpMessage
impl PartialEq for CtcpMessage
impl Eq for CtcpMessage
impl StructuralPartialEq for CtcpMessage
Auto Trait Implementations§
impl Freeze for CtcpMessage
impl RefUnwindSafe for CtcpMessage
impl Send for CtcpMessage
impl Sync for CtcpMessage
impl Unpin for CtcpMessage
impl UnsafeUnpin for CtcpMessage
impl UnwindSafe for CtcpMessage
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