pub struct QueryExcerpt {
pub schema: ExcerptSchema,
pub label: String,
pub producer: Option<Producer>,
pub source: Option<DocumentSource>,
pub meta: Option<DocumentMeta>,
pub diagnostics: Vec<Diagnostic>,
pub selections: Vec<ExcerptSelection>,
}Expand description
One or more independently selected nodes from a complete query.
Fields§
§schema: ExcerptSchemaExact response schema discriminator.
label: StringHuman-readable selected-document label.
producer: Option<Producer>Process and parser provenance, when a document was loaded.
source: Option<DocumentSource>Authoritative document source, when one was loaded.
meta: Option<DocumentMeta>Document metadata, when one was loaded.
diagnostics: Vec<Diagnostic>Recoverable parser and validation findings.
selections: Vec<ExcerptSelection>Selected nodes in request order.
Trait Implementations§
Source§impl Clone for QueryExcerpt
impl Clone for QueryExcerpt
Source§fn clone(&self) -> QueryExcerpt
fn clone(&self) -> QueryExcerpt
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 QueryExcerpt
impl Debug for QueryExcerpt
Source§impl<'de> Deserialize<'de> for QueryExcerpt
impl<'de> Deserialize<'de> for QueryExcerpt
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 Eq for QueryExcerpt
Source§impl JsonSchema for QueryExcerpt
impl JsonSchema for QueryExcerpt
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 QueryExcerpt
impl PartialEq for QueryExcerpt
Source§impl Serialize for QueryExcerpt
impl Serialize for QueryExcerpt
impl StructuralPartialEq for QueryExcerpt
Auto Trait Implementations§
impl Freeze for QueryExcerpt
impl RefUnwindSafe for QueryExcerpt
impl Send for QueryExcerpt
impl Sync for QueryExcerpt
impl Unpin for QueryExcerpt
impl UnsafeUnpin for QueryExcerpt
impl UnwindSafe for QueryExcerpt
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