pub enum PostableMessage {
Text(String),
Markdown(String),
}Expand description
A message that the agent wants to send to a channel.
Additional variants (Card, Stream) will be added when the
corresponding modules are implemented.
Variants§
Trait Implementations§
Source§impl Clone for PostableMessage
impl Clone for PostableMessage
Source§fn clone(&self) -> PostableMessage
fn clone(&self) -> PostableMessage
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 PostableMessage
impl Debug for PostableMessage
Source§impl<'de> Deserialize<'de> for PostableMessage
impl<'de> Deserialize<'de> for PostableMessage
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 From<&str> for PostableMessage
impl From<&str> for PostableMessage
Source§impl From<String> for PostableMessage
impl From<String> for PostableMessage
Auto Trait Implementations§
impl Freeze for PostableMessage
impl RefUnwindSafe for PostableMessage
impl Send for PostableMessage
impl Sync for PostableMessage
impl Unpin for PostableMessage
impl UnsafeUnpin for PostableMessage
impl UnwindSafe for PostableMessage
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