pub struct ContextAskResponse {
pub answer: Option<ContextAnswer>,
pub hit: bool,
pub reason: Option<ContextMissReason>,
pub next_step: Option<ContextNextStep>,
}Expand description
Response from GET /v1/context/ask.
Fields§
§answer: Option<ContextAnswer>§hit: bool§reason: Option<ContextMissReason>§next_step: Option<ContextNextStep>Implementations§
Source§impl ContextAskResponse
impl ContextAskResponse
pub fn page_derived(&self) -> bool
Trait Implementations§
Source§impl Clone for ContextAskResponse
impl Clone for ContextAskResponse
Source§impl Debug for ContextAskResponse
impl Debug for ContextAskResponse
Source§impl<'de> Deserialize<'de> for ContextAskResponse
impl<'de> Deserialize<'de> for ContextAskResponse
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextAskResponse
impl PartialEq for ContextAskResponse
Source§impl Serialize for ContextAskResponse
impl Serialize for ContextAskResponse
impl StructuralPartialEq for ContextAskResponse
Auto Trait Implementations§
impl Freeze for ContextAskResponse
impl RefUnwindSafe for ContextAskResponse
impl Send for ContextAskResponse
impl Sync for ContextAskResponse
impl Unpin for ContextAskResponse
impl UnsafeUnpin for ContextAskResponse
impl UnwindSafe for ContextAskResponse
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