pub struct TextAttachment {
pub plaintext: String,
pub link_attachment_url: Option<String>,
pub text_with_styling_info: Option<Vec<TextStylingInfo>>,
}Expand description
Text attachment with optional styling (up to 10,000 chars).
Fields§
§plaintext: StringPlain text content.
link_attachment_url: Option<String>Optional link attachment URL.
text_with_styling_info: Option<Vec<TextStylingInfo>>Optional styling information for text ranges.
Trait Implementations§
Source§impl Clone for TextAttachment
impl Clone for TextAttachment
Source§fn clone(&self) -> TextAttachment
fn clone(&self) -> TextAttachment
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 TextAttachment
impl Debug for TextAttachment
Source§impl<'de> Deserialize<'de> for TextAttachment
impl<'de> Deserialize<'de> for TextAttachment
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 TextAttachment
impl RefUnwindSafe for TextAttachment
impl Send for TextAttachment
impl Sync for TextAttachment
impl Unpin for TextAttachment
impl UnsafeUnpin for TextAttachment
impl UnwindSafe for TextAttachment
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