pub struct TrustRuleConfig {
pub data: String,
pub key: String,
}Expand description
A single trust schema rule in the router configuration.
Rules are specified as [[security.rule]] entries in the TOML config:
[[security.rule]]
data = "/sensor/<node>/<type>"
key = "/sensor/<node>/KEY/<id>"
[[security.rule]]
data = "/admin/<**rest>"
key = "/admin/KEY/<id>"Each rule consists of a data name pattern and a key name pattern. Variables
(e.g. <node>) captured in the data pattern must bind the same component
value in the key pattern — this prevents cross-identity signing.
Fields§
§data: StringData name pattern, e.g. /sensor/<node>/<type>.
key: StringKey name pattern, e.g. /sensor/<node>/KEY/<id>.
Trait Implementations§
Source§impl Clone for TrustRuleConfig
impl Clone for TrustRuleConfig
Source§fn clone(&self) -> TrustRuleConfig
fn clone(&self) -> TrustRuleConfig
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 TrustRuleConfig
impl Debug for TrustRuleConfig
Source§impl Default for TrustRuleConfig
impl Default for TrustRuleConfig
Source§fn default() -> TrustRuleConfig
fn default() -> TrustRuleConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrustRuleConfig
impl<'de> Deserialize<'de> for TrustRuleConfig
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
Auto Trait Implementations§
impl Freeze for TrustRuleConfig
impl RefUnwindSafe for TrustRuleConfig
impl Send for TrustRuleConfig
impl Sync for TrustRuleConfig
impl Unpin for TrustRuleConfig
impl UnwindSafe for TrustRuleConfig
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