pub trait ModelObject {
// Required methods
fn id(&self) -> Option<ObjectIdentity>;
fn object_type(&self) -> ObjectTypeName;
fn super_types(&self) -> &[ObjectTypeName];
fn extra_context(&self) -> Option<&str>;
fn property(&self, name: &PropertyName) -> Result<ModelValue>;
fn links(&self) -> &[LinkName];
fn linked_objects<'a>(
&self,
graph: &ModelGraph<'a>,
max_objects: usize,
) -> Result<Vec<ModelObjectRef<'a>>>;
}Expand description
Validation model object.
Required Methods§
Sourcefn id(&self) -> Option<ObjectIdentity>
fn id(&self) -> Option<ObjectIdentity>
Optional stable object identity.
Sourcefn object_type(&self) -> ObjectTypeName
fn object_type(&self) -> ObjectTypeName
Concrete object type.
Sourcefn super_types(&self) -> &[ObjectTypeName]
fn super_types(&self) -> &[ObjectTypeName]
Supertype names.
Sourcefn extra_context(&self) -> Option<&str>
fn extra_context(&self) -> Option<&str>
Extra diagnostic context.