pub struct ExplanationWire {
pub schema: String,
pub explainer: String,
pub facet_sources: Vec<FacetSource>,
pub sides: Vec<Side>,
pub redaction: Option<Redaction>,
pub query: Query,
pub answer: Value,
pub truncation: Option<Truncation>,
pub facts: Vec<Fact>,
}Fields§
§schema: String§explainer: String§facet_sources: Vec<FacetSource>§sides: Vec<Side>§redaction: Option<Redaction>§query: Query§answer: Value§truncation: Option<Truncation>§facts: Vec<Fact>Trait Implementations§
Source§impl Clone for ExplanationWire
impl Clone for ExplanationWire
Source§impl Debug for ExplanationWire
impl Debug for ExplanationWire
Source§impl<'de> Deserialize<'de> for ExplanationWire
impl<'de> Deserialize<'de> for ExplanationWire
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 JsonSchema for ExplanationWire
impl JsonSchema for ExplanationWire
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ExplanationWire
impl PartialEq for ExplanationWire
Source§impl Serialize for ExplanationWire
impl Serialize for ExplanationWire
impl StructuralPartialEq for ExplanationWire
Auto Trait Implementations§
impl Freeze for ExplanationWire
impl RefUnwindSafe for ExplanationWire
impl Send for ExplanationWire
impl Sync for ExplanationWire
impl Unpin for ExplanationWire
impl UnsafeUnpin for ExplanationWire
impl UnwindSafe for ExplanationWire
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