pub struct Predicate {
pub ty: Option<String>,
pub value: Option<String>,
}Expand description
The predicate (relation) of a triple.
ty is always None: the original lib/predicate/type.js is an
unimplemented stub that returns undefined.
Fields§
§ty: Option<String>Predicate type — always None (not implemented upstream).
value: Option<String>The mapped predicate, e.g. message or follow.
Trait Implementations§
Source§impl Ord for Predicate
impl Ord for Predicate
1.21.0 (const: unstable) · 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 PartialOrd for Predicate
impl PartialOrd for Predicate
impl Eq for Predicate
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
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