pub struct RichTextChannel { /* private fields */ }Expand description
A channel mention inside rich text.
Implementations§
Source§impl RichTextChannel
impl RichTextChannel
Sourcepub fn builder() -> RichTextChannelBuilder
pub fn builder() -> RichTextChannelBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> RichTextChannelBuilder
pub fn into_builder(self) -> RichTextChannelBuilder
Moves every field into an editable builder, preserving explicit omissions.
Sourcepub fn channel_id(&self) -> &str
pub fn channel_id(&self) -> &str
Borrows or copies channel_id. Sets the ID of the mentioned channel.
Sourcepub fn style(&self) -> Option<&RichTextStyle>
pub fn style(&self) -> Option<&RichTextStyle>
Borrows or copies style. Sets the mention style.
Sourcepub fn extensions(&self) -> &Map<String, Value>
pub fn extensions(&self) -> &Map<String, Value>
Borrows checked, unmodeled JSON extension fields.
Trait Implementations§
Source§impl Clone for RichTextChannel
impl Clone for RichTextChannel
Source§impl Debug for RichTextChannel
impl Debug for RichTextChannel
Source§impl<'de> Deserialize<'de> for RichTextChannel
impl<'de> Deserialize<'de> for RichTextChannel
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RichTextChannel> for RichTextSectionElement
impl From<RichTextChannel> for RichTextSectionElement
Source§fn from(value: RichTextChannel) -> Self
fn from(value: RichTextChannel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RichTextChannel
impl PartialEq for RichTextChannel
Source§impl Serialize for RichTextChannel
impl Serialize for RichTextChannel
impl StructuralPartialEq for RichTextChannel
Source§impl TryFrom<Value> for RichTextChannel
impl TryFrom<Value> for RichTextChannel
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for RichTextChannel
impl Freeze for RichTextChannel
impl Move for RichTextChannel
impl RefUnwindSafe for RichTextChannel
impl Send for RichTextChannel
impl Sync for RichTextChannel
impl Unpin for RichTextChannel
impl UnsafeUnpin for RichTextChannel
impl UnwindSafe for RichTextChannel
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