pub struct PropertyMapping { /* private fields */ }Expand description
A property mapping maps human-readable property and attribute labels to ObjIds.
Implementations§
Source§impl PropertyMapping
impl PropertyMapping
Sourcepub fn add(
&mut self,
property_label: String,
attribute_label: String,
attribute_id: ObjId,
)
pub fn add( &mut self, property_label: String, attribute_label: String, attribute_id: ObjId, )
Add an property/attribute/attribute-id triple to the mapping.
Sourcepub fn translate<'a>(
&self,
attributes: impl IntoIterator<Item = (&'a str, &'a str)>,
) -> FnvHashSet<u128>
pub fn translate<'a>( &self, attributes: impl IntoIterator<Item = (&'a str, &'a str)>, ) -> FnvHashSet<u128>
Translate the given property/attribute labels to underlying ObjIds.
Trait Implementations§
Source§impl Default for PropertyMapping
impl Default for PropertyMapping
Source§fn default() -> PropertyMapping
fn default() -> PropertyMapping
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PropertyMapping
impl RefUnwindSafe for PropertyMapping
impl Send for PropertyMapping
impl Sync for PropertyMapping
impl Unpin for PropertyMapping
impl UnwindSafe for PropertyMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request