pub struct SelectorResponse {
pub answer: String,
pub confidence: f32,
pub intent: String,
pub intent_score: f32,
}
Fields§
§answer: String
§confidence: f32
§intent: String
§intent_score: f32
Trait Implementations§
Source§impl Clone for SelectorResponse
impl Clone for SelectorResponse
Source§fn clone(&self) -> SelectorResponse
fn clone(&self) -> SelectorResponse
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 SelectorResponse
impl Debug for SelectorResponse
Source§impl Default for SelectorResponse
impl Default for SelectorResponse
Source§fn default() -> SelectorResponse
fn default() -> SelectorResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelectorResponse
impl<'de> Deserialize<'de> for SelectorResponse
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 SelectorResponse
impl RefUnwindSafe for SelectorResponse
impl Send for SelectorResponse
impl Sync for SelectorResponse
impl Unpin for SelectorResponse
impl UnwindSafe for SelectorResponse
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