pub struct GatePredicate {
pub verify: Option<String>,
pub disproof: Option<String>,
pub set_at: Option<u64>,
}Expand description
Typed proof/disproof predicate carried inline on a gated [/] item.
verify / disproof are matched as plain substrings against ops.log
message bodies (the text after the [<epoch>] prefix). set_at is the
gate-set time in epoch seconds; only markers at or after it are considered.
Fields§
§verify: Option<String>ops.log substring that PROVES the gate.
disproof: Option<String>ops.log substring that DISPROVES the gate (disproof wins ties).
set_at: Option<u64>Gate-set time as epoch seconds; only markers at/after this count.
Implementations§
Source§impl GatePredicate
impl GatePredicate
Sourcepub fn is_actionable(&self) -> bool
pub fn is_actionable(&self) -> bool
True when the predicate carries at least one usable matcher.
Trait Implementations§
Source§impl Clone for GatePredicate
impl Clone for GatePredicate
Source§fn clone(&self) -> GatePredicate
fn clone(&self) -> GatePredicate
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 GatePredicate
impl Debug for GatePredicate
Source§impl Default for GatePredicate
impl Default for GatePredicate
Source§fn default() -> GatePredicate
fn default() -> GatePredicate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GatePredicate
impl<'de> Deserialize<'de> for GatePredicate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GatePredicate
Source§impl PartialEq for GatePredicate
impl PartialEq for GatePredicate
Source§impl Serialize for GatePredicate
impl Serialize for GatePredicate
impl StructuralPartialEq for GatePredicate
Auto Trait Implementations§
impl Freeze for GatePredicate
impl RefUnwindSafe for GatePredicate
impl Send for GatePredicate
impl Sync for GatePredicate
impl Unpin for GatePredicate
impl UnsafeUnpin for GatePredicate
impl UnwindSafe for GatePredicate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.