Struct terminus_store::StringTriple
source · pub struct StringTriple {
pub subject: String,
pub predicate: String,
pub object: ObjectType,
}
Expand description
A triple stored as strings.
Fields§
§subject: String
§predicate: String
§object: ObjectType
Implementations§
source§impl StringTriple
impl StringTriple
sourcepub fn new_node(subject: &str, predicate: &str, object: &str) -> StringTriple
pub fn new_node(subject: &str, predicate: &str, object: &str) -> StringTriple
Construct a triple with a node object.
Nodes may appear in both the subject and object position.
sourcepub fn new_value(subject: &str, predicate: &str, object: &str) -> StringTriple
pub fn new_value(subject: &str, predicate: &str, object: &str) -> StringTriple
Construct a triple with a value object.
Values may only appear in the object position.
sourcepub fn to_unresolved(self) -> PartiallyResolvedTriple
pub fn to_unresolved(self) -> PartiallyResolvedTriple
Convert this triple to a PartiallyResolvedTriple
, marking each field as unresolved.
Trait Implementations§
source§impl Clone for StringTriple
impl Clone for StringTriple
source§fn clone(&self) -> StringTriple
fn clone(&self) -> StringTriple
Returns a copy of the value. Read more
1.0.0 · 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 StringTriple
impl Debug for StringTriple
source§impl Hash for StringTriple
impl Hash for StringTriple
source§impl Ord for StringTriple
impl Ord for StringTriple
source§fn cmp(&self, other: &StringTriple) -> Ordering
fn cmp(&self, other: &StringTriple) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StringTriple> for StringTriple
impl PartialEq<StringTriple> for StringTriple
source§fn eq(&self, other: &StringTriple) -> bool
fn eq(&self, other: &StringTriple) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StringTriple> for StringTriple
impl PartialOrd<StringTriple> for StringTriple
source§fn partial_cmp(&self, other: &StringTriple) -> Option<Ordering>
fn partial_cmp(&self, other: &StringTriple) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more