Struct tbot::util::entities::SemanticEntity
source · pub struct SemanticEntity {
pub kind: Option<Kind>,
pub value: Vec<FormattedText>,
}
Expand description
Represents a semantic entity.
Fields§
§kind: Option<Kind>
The semantic meaning.
value: Vec<FormattedText>
A Vec
of formatted strings.
Trait Implementations§
source§impl Clone for SemanticEntity
impl Clone for SemanticEntity
source§fn clone(&self) -> SemanticEntity
fn clone(&self) -> SemanticEntity
Returns a copy 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 SemanticEntity
impl Debug for SemanticEntity
source§impl Formattable for SemanticEntity
impl Formattable for SemanticEntity
source§impl Hash for SemanticEntity
impl Hash for SemanticEntity
source§impl PartialEq<SemanticEntity> for SemanticEntity
impl PartialEq<SemanticEntity> for SemanticEntity
source§fn eq(&self, other: &SemanticEntity) -> bool
fn eq(&self, other: &SemanticEntity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.