pub struct TopicLabel {
pub topic: String,
pub is_new: bool,
}Expand description
A canonical topic label returned by the LLM.
Fields§
§topic: StringThe canonical 1-3 word topic label.
is_new: boolWhether this is a new topic or matched an existing one.
Trait Implementations§
Source§impl Clone for TopicLabel
impl Clone for TopicLabel
Source§fn clone(&self) -> TopicLabel
fn clone(&self) -> TopicLabel
Returns a duplicate 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 TopicLabel
impl Debug for TopicLabel
Source§impl<'de> Deserialize<'de> for TopicLabel
impl<'de> Deserialize<'de> for TopicLabel
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
Source§impl PartialEq for TopicLabel
impl PartialEq for TopicLabel
Source§impl Serialize for TopicLabel
impl Serialize for TopicLabel
impl Eq for TopicLabel
impl StructuralPartialEq for TopicLabel
Auto Trait Implementations§
impl Freeze for TopicLabel
impl RefUnwindSafe for TopicLabel
impl Send for TopicLabel
impl Sync for TopicLabel
impl Unpin for TopicLabel
impl UnsafeUnpin for TopicLabel
impl UnwindSafe for TopicLabel
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