pub struct SuggestedActionCustom {
pub name: String,
pub title: FormattedText,
pub description: FormattedText,
pub url: String,
}Expand description
A custom suggestion to be shown at the top of the chat list
Fields§
§name: StringUnique name of the suggestion
title: FormattedTextTitle of the suggestion
description: FormattedTextDescription of the suggestion
url: StringThe link to open when the suggestion is clicked
Trait Implementations§
Source§impl Clone for SuggestedActionCustom
impl Clone for SuggestedActionCustom
Source§fn clone(&self) -> SuggestedActionCustom
fn clone(&self) -> SuggestedActionCustom
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 SuggestedActionCustom
impl Debug for SuggestedActionCustom
Source§impl Default for SuggestedActionCustom
impl Default for SuggestedActionCustom
Source§fn default() -> SuggestedActionCustom
fn default() -> SuggestedActionCustom
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuggestedActionCustom
impl<'de> Deserialize<'de> for SuggestedActionCustom
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
Source§impl PartialEq for SuggestedActionCustom
impl PartialEq for SuggestedActionCustom
Source§impl Serialize for SuggestedActionCustom
impl Serialize for SuggestedActionCustom
impl StructuralPartialEq for SuggestedActionCustom
Auto Trait Implementations§
impl Freeze for SuggestedActionCustom
impl RefUnwindSafe for SuggestedActionCustom
impl Send for SuggestedActionCustom
impl Sync for SuggestedActionCustom
impl Unpin for SuggestedActionCustom
impl UnsafeUnpin for SuggestedActionCustom
impl UnwindSafe for SuggestedActionCustom
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