#[non_exhaustive]pub struct Separator {
pub id: Option<i32>,
pub divider: bool,
pub spacing: Option<SeparatorSpacing>,
}Expand description
A separator: vertical space between components, with an optional line. Messages only.
discord.js counterpart: SeparatorComponent / SeparatorBuilder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<i32>The component’s numeric identifier (generated by Discord when not set).
divider: boolWhether a line is drawn (default true).
spacing: Option<SeparatorSpacing>The amount of space (Discord’s default: Small).
Implementations§
Trait Implementations§
impl Eq for Separator
impl StructuralPartialEq for Separator
Auto Trait Implementations§
impl Forget for Separator
impl Freeze for Separator
impl Move for Separator
impl RefUnwindSafe for Separator
impl Send for Separator
impl Sync for Separator
impl Unpin for Separator
impl UnsafeUnpin for Separator
impl UnwindSafe for Separator
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