pub struct PrivMsg(pub String);
Tuple Fields§
§0: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PrivMsg
impl<'de> Deserialize<'de> for PrivMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<&PrivMsg> for AppEntryBytes
impl TryFrom<&PrivMsg> for AppEntryBytes
Source§impl TryFrom<&PrivMsg> for SerializedBytes
impl TryFrom<&PrivMsg> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &PrivMsg) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &PrivMsg) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<PrivMsg> for AppEntryBytes
impl TryFrom<PrivMsg> for AppEntryBytes
Source§impl TryFrom<PrivMsg> for SerializedBytes
impl TryFrom<PrivMsg> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: PrivMsg) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: PrivMsg) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for PrivMsg
impl TryFrom<SerializedBytes> for PrivMsg
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<PrivMsg, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<PrivMsg, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PrivMsg
impl RefUnwindSafe for PrivMsg
impl Send for PrivMsg
impl Sync for PrivMsg
impl Unpin for PrivMsg
impl UnwindSafe for PrivMsg
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