pub struct DocumentDetail {
pub response: QueryResponse<Qualified<Document>>,
pub assets: Option<Vec<Asset>>,
}Expand description
One document as document show reports it: the response every show verb answers with,
and the document’s image assets beside it.
The response is flattened rather than nested, so a reader of document show --json
written before assets existed reads exactly the members it read before.
Fields§
§response: QueryResponse<Qualified<Document>>The document, its plan and any failure, exactly as Engine::document answers.
assets: Option<Vec<Asset>>The image assets the document holds, in the order its content first references them
— [] for a document that holds none.
Absent for a document that was not found, and for one whose assets could not be
read — the failure then in the response’s errors.
Trait Implementations§
Source§impl Clone for DocumentDetail
impl Clone for DocumentDetail
Source§impl Debug for DocumentDetail
impl Debug for DocumentDetail
Source§impl<'de> Deserialize<'de> for DocumentDetail
impl<'de> Deserialize<'de> for DocumentDetail
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 DocumentDetail
impl JsonSchema for DocumentDetail
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 DocumentDetail
impl PartialEq for DocumentDetail
Source§impl Serialize for DocumentDetail
impl Serialize for DocumentDetail
impl StructuralPartialEq for DocumentDetail
Auto Trait Implementations§
impl Freeze for DocumentDetail
impl RefUnwindSafe for DocumentDetail
impl Send for DocumentDetail
impl Sync for DocumentDetail
impl Unpin for DocumentDetail
impl UnsafeUnpin for DocumentDetail
impl UnwindSafe for DocumentDetail
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