pub struct SectionElement {
pub text: Option<String>,
pub accessory: Option<Box<CardChild>>,
}Expand description
A section element containing text and an optional accessory.
Fields§
§text: Option<String>Primary text content of the section.
accessory: Option<Box<CardChild>>Optional accessory element displayed alongside the text.
Trait Implementations§
Source§impl Clone for SectionElement
impl Clone for SectionElement
Source§fn clone(&self) -> SectionElement
fn clone(&self) -> SectionElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SectionElement
impl Debug for SectionElement
Source§impl<'de> Deserialize<'de> for SectionElement
impl<'de> Deserialize<'de> for SectionElement
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 SectionElement
impl RefUnwindSafe for SectionElement
impl Send for SectionElement
impl Sync for SectionElement
impl Unpin for SectionElement
impl UnsafeUnpin for SectionElement
impl UnwindSafe for SectionElement
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