Skip to main content

Described

Struct Described 

Source
#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§kind: DescribeKind

Whether the answer is for a class or an object.

§class: String

The class name (class, or object.class).

§class_hash: String

The 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.

Trait Implementations§

Source§

impl Clone for Described

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Described

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Described

Source§

impl PartialEq for Described

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Described

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.