pub struct MessageInput {Show 14 fields
pub channel: String,
pub sender: String,
pub text: String,
pub msg_type: Option<String>,
pub media_url: Option<String>,
pub mime_type: Option<String>,
pub thumbnail_url: Option<String>,
pub file_name: Option<String>,
pub file_size: Option<u64>,
pub duration_seconds: Option<u32>,
pub lat: Option<f64>,
pub lon: Option<f64>,
pub reply_to: Option<String>,
pub metadata: Option<Value>,
}Fields§
§channel: StringChannel/conversation ID
sender: StringSender ID
text: StringMessage text (or HTML if msg_type is “html”)
msg_type: Option<String>Message type: text, html, image, video, audio, file, location, contact, system
media_url: Option<String>Media URL (for image, video, audio, file types)
mime_type: Option<String>Media MIME type (e.g. “image/png”, “video/mp4”, “audio/ogg”)
thumbnail_url: Option<String>Thumbnail URL (for video/image preview)
file_name: Option<String>File name (for file attachments)
file_size: Option<u64>File size in bytes
duration_seconds: Option<u32>Duration in seconds (for audio/video)
lat: Option<f64>Location latitude (for location type)
lon: Option<f64>Location longitude (for location type)
reply_to: Option<String>Reply-to message ID (for threading)
metadata: Option<Value>Additional metadata
Trait Implementations§
Source§impl Debug for MessageInput
impl Debug for MessageInput
Source§impl<'de> Deserialize<'de> for MessageInput
impl<'de> Deserialize<'de> for MessageInput
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 JsonSchema for MessageInput
impl JsonSchema for MessageInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MessageInput
impl RefUnwindSafe for MessageInput
impl Send for MessageInput
impl Sync for MessageInput
impl Unpin for MessageInput
impl UnsafeUnpin for MessageInput
impl UnwindSafe for MessageInput
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