pub struct Separator {
pub t: TypeField<14>,
pub id: Option<i32>,
pub divider: Option<bool>,
pub spacing: Option<SeparatorSpacing>,
}Expand description
Separator: vertical
space between components, with a divider line by default. In markup:
<Separator>.
Fields§
§t: TypeField<14>The component type, always 14
id: Option<i32>Identifier unique within the message; Discord numbers components without one
divider: Option<bool>Draws a line (defaults to true)
spacing: Option<SeparatorSpacing>Defaults to small
Implementations§
Source§impl Separator
impl Separator
Sourcepub fn builder() -> SeparatorBuilder
pub fn builder() -> SeparatorBuilder
A separator built as <Separator> does
Source§impl Separator
impl Separator
Sourcepub fn without_divider(self) -> Self
pub fn without_divider(self) -> Self
Only space, no line
Sourcepub fn with_spacing(self, spacing: SeparatorSpacing) -> Self
pub fn with_spacing(self, spacing: SeparatorSpacing) -> Self
Sets the space around it
Trait Implementations§
impl ContainerChild for Separator
Source§impl<'de> Deserialize<'de> for Separator
impl<'de> Deserialize<'de> for Separator
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 MessageChild for Separator
Auto Trait Implementations§
impl Freeze 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