pub struct PlainText { /* private fields */ }Expand description
text 结构体
Implementations§
Source§impl PlainText
impl PlainText
pub fn text(content: &str) -> Self
pub fn markdown(content: &str) -> Self
Sourcepub fn tag(self, tag: &str) -> Self
pub fn tag(self, tag: &str) -> Self
文本类型的标签。可取值:
plain_text:普通文本内容 lark_md:支持部分 Markdown 语法的文本内容
pub fn text_size(self, text_size: &str) -> Self
pub fn text_color(self, text_color: &str) -> Self
pub fn text_align(self, text_align: &str) -> Self
pub fn lines(self, lines: i32) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlainText
impl<'de> Deserialize<'de> for PlainText
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 PlainText
impl RefUnwindSafe for PlainText
impl Send for PlainText
impl Sync for PlainText
impl Unpin for PlainText
impl UnwindSafe for PlainText
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