pub struct SlashCommandTimelineEntry {
pub text: String,
pub type: String,
pub url: Option<String>,
}Expand description
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§text: StringText displayed for the timeline entry.
type: StringTimeline entry presentation type.
url: Option<String>Optional URL associated with the timeline entry.
Trait Implementations§
Source§impl Clone for SlashCommandTimelineEntry
impl Clone for SlashCommandTimelineEntry
Source§fn clone(&self) -> SlashCommandTimelineEntry
fn clone(&self) -> SlashCommandTimelineEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SlashCommandTimelineEntry
impl Debug for SlashCommandTimelineEntry
Source§impl Default for SlashCommandTimelineEntry
impl Default for SlashCommandTimelineEntry
Source§fn default() -> SlashCommandTimelineEntry
fn default() -> SlashCommandTimelineEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlashCommandTimelineEntry
impl<'de> Deserialize<'de> for SlashCommandTimelineEntry
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 SlashCommandTimelineEntry
impl RefUnwindSafe for SlashCommandTimelineEntry
impl Send for SlashCommandTimelineEntry
impl Sync for SlashCommandTimelineEntry
impl Unpin for SlashCommandTimelineEntry
impl UnsafeUnpin for SlashCommandTimelineEntry
impl UnwindSafe for SlashCommandTimelineEntry
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