#[non_exhaustive]pub struct Described {
pub kind: DescribeKind,
pub class: String,
pub class_hash: String,
pub object_id: Option<String>,
pub function: Option<String>,
pub fn_hash: Option<String>,
pub tests: Option<DescribeTests>,
pub source: Option<DescribeSource>,
pub publisher: Option<String>,
pub facets: Option<BTreeMap<String, Vec<String>>>,
pub extensions: Vec<DescribeExtension>,
}Expand description
A describe answer that passed check_describe.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: DescribeKindWhether the answer is for a class or an object.
class: StringThe class name (class, or object.class).
class_hash: StringThe class hash (class_hash, or object.class_hash).
object_id: Option<String>The object id (an object answer only).
function: Option<String>The function name (a function answer only, spec-0.6.0).
fn_hash: Option<String>The function hash (a function answer only, spec-0.6.0).
tests: Option<DescribeTests>The tests the mesh holds (a function answer’s, or a method entry’s, spec-0.6.0).
None for an object answer, a class, and any entry without tests.
source: Option<DescribeSource>Where a relayed function’s value is taken from (spec-0.6.0); None when not relayed.
publisher: Option<String>The publisher (spec-0.6.1, 16.8): the host of a class’s or a function’s namespace, when the
answer gives one. None for an object answer and for an answer without publisher.
facets: Option<BTreeMap<String, Vec<String>>>The facets (the classes round, C2, 9.6): the facet lists of a function answer, a class answer or a
find result, by facet key (domain, frequency, measure, region, thing), each ascending
and unique. None when the answer has none, and for an object answer and a catalogue root.
extensions: Vec<DescribeExtension>The functions that extend the object’s class (the classes round, K9, 16.8): ascending by function,
empty when the answer has no extensions, and for every other kind of answer.