pub struct AnswerBox {
pub answer: Option<String>,
pub snippet: Option<String>,
pub title: Option<String>,
pub link: Option<String>,
}
Expand description
Answer box with direct answers to queries
Fields§
§answer: Option<String>
Direct answer text (optional)
snippet: Option<String>
Snippet providing context for the answer (optional)
title: Option<String>
Source title (optional)
link: Option<String>
Source link (optional)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnswerBox
impl<'de> Deserialize<'de> for AnswerBox
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
impl StructuralPartialEq for AnswerBox
Auto Trait Implementations§
impl Freeze for AnswerBox
impl RefUnwindSafe for AnswerBox
impl Send for AnswerBox
impl Sync for AnswerBox
impl Unpin for AnswerBox
impl UnwindSafe for AnswerBox
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