pub enum StringOrMessage {
Text(String),
Message(Box<BaseMessage>),
}Expand description
Input type that can be either a string or a message.
Variants§
Trait Implementations§
Source§impl Clone for StringOrMessage
impl Clone for StringOrMessage
Source§fn clone(&self) -> StringOrMessage
fn clone(&self) -> StringOrMessage
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 StringOrMessage
impl Debug for StringOrMessage
Source§impl From<&str> for StringOrMessage
impl From<&str> for StringOrMessage
Source§impl From<BaseMessage> for StringOrMessage
impl From<BaseMessage> for StringOrMessage
Source§fn from(msg: BaseMessage) -> Self
fn from(msg: BaseMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StringOrMessage
impl RefUnwindSafe for StringOrMessage
impl Send for StringOrMessage
impl Sync for StringOrMessage
impl Unpin for StringOrMessage
impl UnwindSafe for StringOrMessage
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