pub struct Section {
pub accessory: Box<Component>,
pub components: Vec<Component>,
pub id: Option<i32>,
}Expand description
A component representing a section of a message.
Fields§
§accessory: Box<Component>An accessory component for this section.
Currently, only Thumbnail and Button components are supported here.
components: Vec<Component>One to three text components.
id: Option<i32>Optional identifier for the section.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Forget for Section
impl Freeze for Section
impl Move for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Sectionwhere
*const Component is !null: UnsafeUnpin,
PhantomData<Component>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
impl UnwindSafe for Sectionwhere
BoxRaw<Component>: UnwindSafe,
RawVecInner: UnwindSafe,
NonZero<u64>: UnwindSafe,
InternalBitFlags: UnwindSafe,
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