pub struct DocumentResponse {
pub schema: DocumentSchema,
pub producer: Producer,
pub source: DocumentSource,
pub meta: DocumentMeta,
pub heading: Option<Heading>,
pub fragment_aliases: Vec<FragmentAlias>,
pub diagnostics: Vec<Diagnostic>,
pub blocks: Vec<Block>,
pub sections: Vec<Section>,
}Expand description
Serializable v0.11 envelope around ManT’s protocol-independent document IR.
Fields§
§schema: DocumentSchemaExact response schema discriminator.
producer: ProducerProcess and parser provenance.
source: DocumentSourceOriginal source identity.
meta: DocumentMetaSource-neutral document metadata.
heading: Option<Heading>Original visible heading; independent from bibliographic metadata.
fragment_aliases: Vec<FragmentAlias>Exact source fragments resolving to the normalized document root.
diagnostics: Vec<Diagnostic>Recoverable parsing and validation findings.
blocks: Vec<Block>Content preceding the first section.
sections: Vec<Section>Top-level semantic sections in source order.
Trait Implementations§
Source§impl Clone for DocumentResponse
impl Clone for DocumentResponse
Source§fn clone(&self) -> DocumentResponse
fn clone(&self) -> DocumentResponse
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 DocumentResponse
impl Debug for DocumentResponse
Source§impl<'de> Deserialize<'de> for DocumentResponse
impl<'de> Deserialize<'de> for DocumentResponse
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 DocumentResponse
Source§impl From<&Document> for DocumentResponse
impl From<&Document> for DocumentResponse
Source§fn from(document: &IrDocument) -> Self
fn from(document: &IrDocument) -> Self
Converts to this type from the input type.
Source§impl From<DocumentResponse> for Document
impl From<DocumentResponse> for Document
Source§fn from(document: DocumentResponse) -> Self
fn from(document: DocumentResponse) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for DocumentResponse
impl JsonSchema for DocumentResponse
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 DocumentResponse
impl PartialEq for DocumentResponse
Source§impl Serialize for DocumentResponse
impl Serialize for DocumentResponse
impl StructuralPartialEq for DocumentResponse
Auto Trait Implementations§
impl Freeze for DocumentResponse
impl RefUnwindSafe for DocumentResponse
impl Send for DocumentResponse
impl Sync for DocumentResponse
impl Unpin for DocumentResponse
impl UnsafeUnpin for DocumentResponse
impl UnwindSafe for DocumentResponse
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