Enum hangouts_rs::ChatSegment [−][src]
A segment of a chat message.
Variants
A pure-text message segment.
Fields of Text
A link segment.
Fields of Link
text: String
Text displayed as part of the message.
target: String
Target location of the url.
display_url: Option<String>
format: Formatting
Formatting of the text content.
A line-break in the middle of a message.
Fields of LinkBreak
Implementations
impl ChatSegment
[src]
pub fn text(&self) -> &str
[src]
Returns the text string of the segment.
pub fn formatting(&self) -> &Formatting
[src]
Returns the Formatting
of the segment.
pub fn is_text(&self) -> bool
[src]
Returns true
if the chat_segment is Self::Text
.
pub fn is_link(&self) -> bool
[src]
Returns true
if the chat_segment is Self::Link
.
pub fn is_link_break(&self) -> bool
[src]
Returns true
if the chat_segment is Self::LinkBreak
.
Trait Implementations
impl Clone for ChatSegment
[src]
fn clone(&self) -> ChatSegment
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChatSegment
[src]
impl From<ChatSegment> for ChatSegment
[src]
fn from(val: ChatSegment) -> Self
[src]
impl PartialEq<ChatSegment> for ChatSegment
[src]
fn eq(&self, other: &ChatSegment) -> bool
[src]
fn ne(&self, other: &ChatSegment) -> bool
[src]
impl StructuralPartialEq for ChatSegment
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChatSegment
impl Send for ChatSegment
impl Sync for ChatSegment
impl Unpin for ChatSegment
impl UnwindSafe for ChatSegment
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,