pub struct TextBlockObjectBuilder {
pub type_filed: TextBlockType,
pub text: String,
pub emoji: Option<bool>,
pub verbatim: Option<bool>,
}Fields§
§type_filed: TextBlockType§text: String§emoji: Option<bool>§verbatim: Option<bool>Implementations§
Source§impl TextBlockObjectBuilder
impl TextBlockObjectBuilder
pub fn new( text_block_type: TextBlockType, text: String, ) -> TextBlockObjectBuilder
pub fn emoji(self, emoji: bool) -> TextBlockObjectBuilder
pub fn verbatim(self, verbatim: bool) -> TextBlockObjectBuilder
pub fn build(self) -> TextBlockObject
Trait Implementations§
Source§impl Debug for TextBlockObjectBuilder
impl Debug for TextBlockObjectBuilder
Source§impl Default for TextBlockObjectBuilder
impl Default for TextBlockObjectBuilder
Source§fn default() -> TextBlockObjectBuilder
fn default() -> TextBlockObjectBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextBlockObjectBuilder
impl RefUnwindSafe for TextBlockObjectBuilder
impl Send for TextBlockObjectBuilder
impl Sync for TextBlockObjectBuilder
impl Unpin for TextBlockObjectBuilder
impl UnwindSafe for TextBlockObjectBuilder
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