pub struct SocketIncoming {
pub chat_id: String,
pub sender_name: Option<String>,
pub text: Option<String>,
pub metadata: HashMap<String, String>,
pub images: Vec<SocketFile>,
pub documents: Vec<SocketFile>,
}Expand description
Inbound message shape — matches SocketChannelReceivedMessage from
the TS addon. All except chat_id is optional.
Fields§
§chat_id: String§sender_name: Option<String>§text: Option<String>§metadata: HashMap<String, String>§images: Vec<SocketFile>§documents: Vec<SocketFile>Trait Implementations§
Source§impl Debug for SocketIncoming
impl Debug for SocketIncoming
Source§impl<'de> Deserialize<'de> for SocketIncoming
impl<'de> Deserialize<'de> for SocketIncoming
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
Auto Trait Implementations§
impl Freeze for SocketIncoming
impl RefUnwindSafe for SocketIncoming
impl Send for SocketIncoming
impl Sync for SocketIncoming
impl Unpin for SocketIncoming
impl UnsafeUnpin for SocketIncoming
impl UnwindSafe for SocketIncoming
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