pub struct ChannelCaps {
pub max_message_len: usize,
pub length_unit: LengthUnit,
pub dialect: MarkdownDialect,
pub threads: bool,
pub edit: bool,
pub typing: bool,
}Expand description
What a channel can do. The runtime adapts its behaviour to these values.
Fields§
§max_message_len: usizeLongest message the platform accepts, in ChannelCaps::length_unit.
length_unit: LengthUnitHow the platform counts length.
dialect: MarkdownDialectFormatting dialect.
threads: boolWhether replies can go into threads.
edit: boolWhether sent messages can be edited (enables “thinking…” and progressive replies).
typing: boolWhether a typing indicator exists.
Implementations§
Source§impl ChannelCaps
impl ChannelCaps
Trait Implementations§
Source§impl Clone for ChannelCaps
impl Clone for ChannelCaps
Source§impl Debug for ChannelCaps
impl Debug for ChannelCaps
Source§impl<'de> Deserialize<'de> for ChannelCaps
impl<'de> Deserialize<'de> for ChannelCaps
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
impl Eq for ChannelCaps
Source§impl PartialEq for ChannelCaps
impl PartialEq for ChannelCaps
Source§impl Serialize for ChannelCaps
impl Serialize for ChannelCaps
impl StructuralPartialEq for ChannelCaps
Auto Trait Implementations§
impl Freeze for ChannelCaps
impl RefUnwindSafe for ChannelCaps
impl Send for ChannelCaps
impl Sync for ChannelCaps
impl Unpin for ChannelCaps
impl UnsafeUnpin for ChannelCaps
impl UnwindSafe for ChannelCaps
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