pub enum CardChild {
Section(SectionElement),
Actions(ActionsElement),
Divider,
Image(ImageElement),
Fields(FieldsElement),
Text(TextElement),
}Expand description
A child element inside a CardElement.
Variants§
Section(SectionElement)
A text section, optionally with an accessory element.
Actions(ActionsElement)
A row of interactive action elements (buttons, etc.).
Divider
A horizontal divider line.
Image(ImageElement)
An inline image.
Fields(FieldsElement)
A set of label/value field pairs.
Text(TextElement)
A block of text with optional styling.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CardChild
impl<'de> Deserialize<'de> for CardChild
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
Auto Trait Implementations§
impl Freeze for CardChild
impl RefUnwindSafe for CardChild
impl Send for CardChild
impl Sync for CardChild
impl Unpin for CardChild
impl UnsafeUnpin for CardChild
impl UnwindSafe for CardChild
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