pub struct AdapterInboundRequest {
pub instance_id: String,
pub chat_id: String,
pub message_id: String,
pub reply_to_message_id: Option<String>,
pub text: String,
pub from: AdapterUser,
pub file: Option<AdapterFileInfo>,
pub files: Vec<AdapterFileInfo>,
pub timestamp: Option<String>,
pub extra_data: Option<Value>,
}Expand description
Request body for adapter inbound messages
Fields§
§instance_id: String§chat_id: String§message_id: String§reply_to_message_id: Option<String>§text: String§from: AdapterUser§file: Option<AdapterFileInfo>Single file attachment (v0.1 compat, deprecated — use files instead)
files: Vec<AdapterFileInfo>Multiple file attachments (v0.2+)
timestamp: Option<String>§extra_data: Option<Value>Trait Implementations§
Source§impl Debug for AdapterInboundRequest
impl Debug for AdapterInboundRequest
Source§impl<'de> Deserialize<'de> for AdapterInboundRequest
impl<'de> Deserialize<'de> for AdapterInboundRequest
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 AdapterInboundRequest
impl RefUnwindSafe for AdapterInboundRequest
impl Send for AdapterInboundRequest
impl Sync for AdapterInboundRequest
impl Unpin for AdapterInboundRequest
impl UnsafeUnpin for AdapterInboundRequest
impl UnwindSafe for AdapterInboundRequest
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