pub struct Row<'a> {
pub key: String,
pub kinds: Vec<String>,
pub property: Option<&'a str>,
}Expand description
One row asked for: the object (its full uri), its kind chain when it is a property, the property when it is.
Build it with Row::at from the object’s name: at is the one place
that turns a name into the full identity the walk beneath
(energyml_domain::color_walks) is keyed by, refusing a name that cannot
say which of two versions is meant.
Fields§
§key: StringThe object’s full uri, the key the walk beneath works in.
kinds: Vec<String>For a property, its kind then the kind’s parents, nearest first.
property: Option<&'a str>The property asked about, if the row is one.
Implementations§
Source§impl<'a> Row<'a>
impl<'a> Row<'a>
Sourcepub fn at(
store: &EpcStore,
name: &str,
kinds: Vec<String>,
property: Option<&'a str>,
) -> Result<Self, Error>
pub fn at( store: &EpcStore, name: &str, kinds: Vec<String>, property: Option<&'a str>, ) -> Result<Self, Error>
The row of the object name names: a full uri (the form to pass), a
short uri or a bare uuid (adapters, refused by name when the package
holds the object in two versions and the name cannot say which).
A name the package does not hold is walked as given: a cascade may ask
about a target that lives elsewhere.