pub struct Card {
pub title: Option<String>,
pub tone: Tone,
pub text: String,
pub image: Option<Image>,
}Expand description
A block of structured content in a prompt: a title and text (ADR 0015).
Fields§
§title: Option<String>Plain text title.
tone: ToneMeaning and colour.
text: StringBody, already rendered for the channel (like Prompt::text).
image: Option<Image>A chart drawn as a picture, shown with the card (ADR 0016). Only on channels with
UiCaps::images; at most one per prompt.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
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 Card
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin for Card
impl UnwindSafe for Card
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