pub struct ExternalDocumentReference {
pub path: Option<String>,
pub document_id: Option<String>,
pub resolution: ExternalResolution,
}Expand description
First-class external document reference without implicit loading.
Fields§
§path: Option<String>File path when the source explicitly stores a file attribute.
document_id: Option<String>Document identity when the source explicitly stores a document attribute.
resolution: ExternalResolutionDeterministic resolution state; decoding never opens external documents.
Trait Implementations§
Source§impl Clone for ExternalDocumentReference
impl Clone for ExternalDocumentReference
Source§fn clone(&self) -> ExternalDocumentReference
fn clone(&self) -> ExternalDocumentReference
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 ExternalDocumentReference
impl Debug for ExternalDocumentReference
Source§impl<'de> Deserialize<'de> for ExternalDocumentReference
impl<'de> Deserialize<'de> for ExternalDocumentReference
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 ExternalDocumentReference
Source§impl JsonSchema for ExternalDocumentReference
impl JsonSchema for ExternalDocumentReference
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 moreimpl StructuralPartialEq for ExternalDocumentReference
Auto Trait Implementations§
impl Freeze for ExternalDocumentReference
impl RefUnwindSafe for ExternalDocumentReference
impl Send for ExternalDocumentReference
impl Sync for ExternalDocumentReference
impl Unpin for ExternalDocumentReference
impl UnsafeUnpin for ExternalDocumentReference
impl UnwindSafe for ExternalDocumentReference
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