pub enum ModelObjectRef<'a> {
Document(DocumentModel<'a>),
Catalog(CatalogModel<'a>),
Metadata(MetadataModel<'a>),
Page(PageModel<'a>),
Font(FontModel<'a>),
Annotation(AnnotationModel<'a>),
OutputIntent(OutputIntentModel<'a>),
ContentStream(ContentStreamModel<'a>),
Stream(StreamModel<'a>),
Generic(GenericModel<'a>),
}Expand description
Validation model object reference.
Variants§
Document(DocumentModel<'a>)
Document root object.
Catalog(CatalogModel<'a>)
Catalog object.
Metadata(MetadataModel<'a>)
Metadata stream object.
Page(PageModel<'a>)
Page dictionary object.
Font(FontModel<'a>)
Font dictionary object.
Annotation(AnnotationModel<'a>)
Annotation dictionary object.
OutputIntent(OutputIntentModel<'a>)
Output intent dictionary object.
ContentStream(ContentStreamModel<'a>)
Page content stream object.
Stream(StreamModel<'a>)
Basic stream object.
Generic(GenericModel<'a>)
Generic dictionary-backed model family object.
Implementations§
Source§impl<'a> ModelObjectRef<'a>
impl<'a> ModelObjectRef<'a>
Sourcepub fn document(&self) -> &'a ParsedDocument
pub fn document(&self) -> &'a ParsedDocument
Returns the parsed document backing this model object.
Sourcepub fn object_type(&self) -> ObjectTypeName
pub fn object_type(&self) -> ObjectTypeName
Returns this object’s type.
Sourcepub fn property(&self, name: &PropertyName) -> Result<ModelValue>
pub fn property(&self, name: &PropertyName) -> Result<ModelValue>
Trait Implementations§
Source§impl<'a> Clone for ModelObjectRef<'a>
impl<'a> Clone for ModelObjectRef<'a>
Source§fn clone(&self) -> ModelObjectRef<'a>
fn clone(&self) -> ModelObjectRef<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ModelObjectRef<'a>
impl<'a> RefUnwindSafe for ModelObjectRef<'a>
impl<'a> Send for ModelObjectRef<'a>
impl<'a> Sync for ModelObjectRef<'a>
impl<'a> Unpin for ModelObjectRef<'a>
impl<'a> UnsafeUnpin for ModelObjectRef<'a>
impl<'a> UnwindSafe for ModelObjectRef<'a>
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