pub struct AdapterSendRequest {
pub chat_id: String,
pub text: String,
pub reply_to_message_id: Option<String>,
pub file_path: Option<String>,
pub file_paths: Vec<String>,
pub extra_data: Option<Value>,
}Expand description
Request body for sending to adapter
Fields§
§chat_id: String§text: String§reply_to_message_id: Option<String>§file_path: Option<String>Single file path (v0.1 compat, deprecated — use file_paths instead)
file_paths: Vec<String>Multiple file paths (v0.2+)
extra_data: Option<Value>Trait Implementations§
Source§impl Debug for AdapterSendRequest
impl Debug for AdapterSendRequest
Auto Trait Implementations§
impl Freeze for AdapterSendRequest
impl RefUnwindSafe for AdapterSendRequest
impl Send for AdapterSendRequest
impl Sync for AdapterSendRequest
impl Unpin for AdapterSendRequest
impl UnsafeUnpin for AdapterSendRequest
impl UnwindSafe for AdapterSendRequest
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