pub struct Classification {
pub id: i64,
pub category: String,
pub subcategory: Option<String>,
pub ticket_id: Option<String>,
pub confidence: f64,
pub method: ClassificationMethod,
}Expand description
A classification verdict produced by the cascade.
Fields§
§id: i64Primary key (database-assigned).
category: StringTop-level category (e.g. feature, bugfix, chore).
subcategory: Option<String>Optional finer-grained label.
ticket_id: Option<String>Associated ticket identifier (e.g. API-123), if any.
confidence: f64Confidence in this verdict (0.0–1.0).
method: ClassificationMethodWhich tier of the cascade produced this verdict.
Trait Implementations§
Source§impl Clone for Classification
impl Clone for Classification
Source§fn clone(&self) -> Classification
fn clone(&self) -> Classification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Classification
impl Debug for Classification
Source§impl<'de> Deserialize<'de> for Classification
impl<'de> Deserialize<'de> for Classification
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
Auto Trait Implementations§
impl Freeze for Classification
impl RefUnwindSafe for Classification
impl Send for Classification
impl Sync for Classification
impl Unpin for Classification
impl UnsafeUnpin for Classification
impl UnwindSafe for Classification
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