pub struct SubgraphDescription {
pub attributes: Vec<String>,
pub relation: Option<(String, String)>,
}Expand description
Output of the graph-based REG algorithm.
Contains the attribute values chosen to premodify the head noun (same as Dale & Reiter output), and an optional relation clause to append as a postmodifier when attributes alone do not disambiguate.
Fields§
§attributes: Vec<String>Attribute values to include as premodifiers, in preference order. May be empty when the entity is the only one of its type.
relation: Option<(String, String)>Distinguishing relation, if one was needed: (label, target_name).
The label is inserted verbatim into the surface form after the head
noun — e.g. Some(("that calls", "AuthService")) renders as
"that calls AuthService".
Trait Implementations§
Source§impl Clone for SubgraphDescription
impl Clone for SubgraphDescription
Source§fn clone(&self) -> SubgraphDescription
fn clone(&self) -> SubgraphDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubgraphDescription
impl Debug for SubgraphDescription
Source§impl Default for SubgraphDescription
impl Default for SubgraphDescription
Source§fn default() -> SubgraphDescription
fn default() -> SubgraphDescription
Returns the “default value” for a type. Read more
Source§impl PartialEq for SubgraphDescription
impl PartialEq for SubgraphDescription
Source§fn eq(&self, other: &SubgraphDescription) -> bool
fn eq(&self, other: &SubgraphDescription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SubgraphDescription
impl StructuralPartialEq for SubgraphDescription
Auto Trait Implementations§
impl Freeze for SubgraphDescription
impl RefUnwindSafe for SubgraphDescription
impl Send for SubgraphDescription
impl Sync for SubgraphDescription
impl Unpin for SubgraphDescription
impl UnsafeUnpin for SubgraphDescription
impl UnwindSafe for SubgraphDescription
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