pub struct SchemaRule {
pub data_pattern: NamePattern,
pub key_pattern: NamePattern,
}Expand description
A single trust schema rule: Data matching data_pattern must be signed
by a key matching key_pattern, with captured variables consistent between
both patterns.
§Text format
A rule is serialized as "<data_pattern> => <key_pattern>", e.g.:
/sensor/<node>/<type> => /sensor/<node>/KEY/<id>Fields§
§data_pattern: NamePattern§key_pattern: NamePatternImplementations§
Trait Implementations§
Source§impl Clone for SchemaRule
impl Clone for SchemaRule
Source§fn clone(&self) -> SchemaRule
fn clone(&self) -> SchemaRule
Returns a duplicate 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 SchemaRule
impl Debug for SchemaRule
Source§impl Display for SchemaRule
impl Display for SchemaRule
Source§impl PartialEq for SchemaRule
impl PartialEq for SchemaRule
impl Eq for SchemaRule
impl StructuralPartialEq for SchemaRule
Auto Trait Implementations§
impl Freeze for SchemaRule
impl RefUnwindSafe for SchemaRule
impl Send for SchemaRule
impl Sync for SchemaRule
impl Unpin for SchemaRule
impl UnwindSafe for SchemaRule
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more