#[non_exhaustive]pub enum ComponentsVersion {
Legacy,
V2,
}Expand description
Which component system a message uses — the IS_COMPONENTS_V2 message flag.
discord.js counterpart: MessageFlags.IsComponentsV2.
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.
Legacy
Without the flag: up to five action rows next to the content and embeds.
V2
With MessageFlags::IS_COMPONENTS_V2:
layout and content components replace the content and embeds, up to 40 components
and 4000 characters of text in all.
Trait Implementations§
Source§impl Clone for ComponentsVersion
impl Clone for ComponentsVersion
impl Copy for ComponentsVersion
Source§impl Debug for ComponentsVersion
impl Debug for ComponentsVersion
impl Eq for ComponentsVersion
Source§impl Hash for ComponentsVersion
impl Hash for ComponentsVersion
Source§impl PartialEq for ComponentsVersion
impl PartialEq for ComponentsVersion
impl StructuralPartialEq for ComponentsVersion
Auto Trait Implementations§
impl Freeze for ComponentsVersion
impl RefUnwindSafe for ComponentsVersion
impl Send for ComponentsVersion
impl Sync for ComponentsVersion
impl Unpin for ComponentsVersion
impl UnsafeUnpin for ComponentsVersion
impl UnwindSafe for ComponentsVersion
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