Struct holmes::engine::types::Predicate
[−]
[src]
pub struct Predicate { pub name: String, pub description: Option<String>, pub fields: Vec<Field>, }
A Predicate
is a name combined with a list of typed slots, e.g.
foo(uint64, string)
would be represented as
use holmes::pg::dyn::types; use holmes::engine::types::{Predicate, Field}; use std::sync::Arc; Predicate { name: "foo".to_string(), description: None, fields: vec![Field { name: None, description: None, type_: Arc::new(types::UInt64) }, Field { name: None, description: None, type_: Arc::new(types::String) }] };
Fields
name: String
Predicate Name
description: Option<String>
Description of what it means for this predicate to be true. Purely documentation, not mechanical
fields: Vec<Field>
Predicate fields
Trait Implementations
impl PartialEq for Predicate
[src]
fn eq(&self, __arg_0: &Predicate) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Predicate) -> bool
This method tests for !=
.
impl Clone for Predicate
[src]
fn clone(&self) -> Predicate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Predicate
[src]
impl Hash for Predicate
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more