pub struct Container {
pub id: Option<i32>,
pub accent_color: Option<Option<u32>>,
pub spoiler: Option<bool>,
pub components: Vec<Component>,
}
Expand description
Fields§
§id: Option<i32>
Optional identifier for the container.
accent_color: Option<Option<u32>>
Color for the accent on the container as RGB from 0x000000
to 0xFFFFFF
.
spoiler: Option<bool>
Whether the container should be a spoiler (or blurred out). Defaults to false
.
components: Vec<Component>
Up to 10 components of the type action row, text display, section, media gallery, separator, or file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Container
impl<'de> Deserialize<'de> for Container
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 Container
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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