pub struct PlatformCaps {
pub supports_edit: bool,
pub returns_msg_id: bool,
pub supports_markdown: bool,
pub markdown_features: MarkdownFeatures,
pub max_message_length: usize,
pub supports_images: bool,
pub supports_files: bool,
pub max_upload_size: u64,
}Expand description
Capabilities that vary by platform.
Fields§
§supports_edit: bool§returns_msg_id: bool§supports_markdown: bool§markdown_features: MarkdownFeatures§max_message_length: usize§supports_images: boolWhether the platform supports image upload and sending.
supports_files: boolWhether the platform supports file upload and sending.
max_upload_size: u64Maximum upload file size in bytes (0 = no limit).
Implementations§
Source§impl PlatformCaps
impl PlatformCaps
Trait Implementations§
Source§impl Clone for PlatformCaps
impl Clone for PlatformCaps
Source§fn clone(&self) -> PlatformCaps
fn clone(&self) -> PlatformCaps
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 moreAuto Trait Implementations§
impl Freeze for PlatformCaps
impl RefUnwindSafe for PlatformCaps
impl Send for PlatformCaps
impl Sync for PlatformCaps
impl Unpin for PlatformCaps
impl UnsafeUnpin for PlatformCaps
impl UnwindSafe for PlatformCaps
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