#[non_exhaustive]pub enum MessageItemType {
None,
Text,
Image,
Voice,
File,
Video,
ToolCallStart,
ToolCallResult,
Unknown(i32),
}Expand description
Message item content type.
Unknown wire values are preserved in MessageItemType::Unknown instead of
failing deserialization — the protocol adds item types over time, and one
unrecognized item must not invalidate an entire getUpdates batch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Unset.
Text
Text content.
Image
Image content.
Voice
Voice content.
File
File attachment.
Video
Video content.
ToolCallStart
Tool call started (progress message).
ToolCallResult
Tool call finished (progress message).
Unknown(i32)
Wire value not known to this SDK version.
Implementations§
Trait Implementations§
Source§impl Clone for MessageItemType
impl Clone for MessageItemType
Source§fn clone(&self) -> MessageItemType
fn clone(&self) -> MessageItemType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageItemType
Source§impl Debug for MessageItemType
impl Debug for MessageItemType
Source§impl Default for MessageItemType
impl Default for MessageItemType
Source§fn default() -> MessageItemType
fn default() -> MessageItemType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageItemType
impl<'de> Deserialize<'de> for MessageItemType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MessageItemType
Source§impl PartialEq for MessageItemType
impl PartialEq for MessageItemType
Source§impl Serialize for MessageItemType
impl Serialize for MessageItemType
impl StructuralPartialEq for MessageItemType
Auto Trait Implementations§
impl Freeze for MessageItemType
impl RefUnwindSafe for MessageItemType
impl Send for MessageItemType
impl Sync for MessageItemType
impl Unpin for MessageItemType
impl UnsafeUnpin for MessageItemType
impl UnwindSafe for MessageItemType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.