pub struct RelationFacet {
pub name: String,
pub cardinality: Cardinality,
pub inverse: Option<String>,
pub spanning: bool,
pub pointer: bool,
pub means: Option<String>,
}Expand description
A relation field, with everything the vocabulary says about it.
Fields§
§name: StringThe frontmatter key.
cardinality: CardinalityOne target or a list of them.
inverse: Option<String>The reciprocal field prov maintains, when there is one.
spanning: boolThe spanning containment backbone — the relation the workspace unfolds along. At most one relation in a workspace is this.
pointer: boolSet when this relation is one of the five pointers the root uses to
find the workspace’s own machinery (config, registry, recycle_bin,
history, about). Followed one way and only from the root: the target
is not content, carries no back-link, and is not in the spanning tree.
means: Option<String>A human gloss of what the relation means, when the workspace declared one — or prov’s own for a preset relation it did not bother to declare. Carried by prov and never read back; here so a frontend can show it.
Trait Implementations§
Source§impl Clone for RelationFacet
impl Clone for RelationFacet
Source§fn clone(&self) -> RelationFacet
fn clone(&self) -> RelationFacet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more