pub struct PolicyRules(pub Vec<String>);Expand description
Array of rule IDs for a policy.
In harmony-dsl v1.7.0+, policies reference rules by ID using a simple array of strings.
Each ID in this array corresponds to a top-level [rules.*] table definition.
§Example
["rate_limit_rule_1", "rate_limit_rule_2", "allow_internal"]Tuple Fields§
§0: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for PolicyRules
impl Clone for PolicyRules
Source§fn clone(&self) -> PolicyRules
fn clone(&self) -> PolicyRules
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 PolicyRules
impl Debug for PolicyRules
Source§impl<'de> Deserialize<'de> for PolicyRules
impl<'de> Deserialize<'de> for PolicyRules
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
Source§impl PartialEq for PolicyRules
impl PartialEq for PolicyRules
Source§impl Serialize for PolicyRules
impl Serialize for PolicyRules
impl Eq for PolicyRules
impl StructuralPartialEq for PolicyRules
Auto Trait Implementations§
impl Freeze for PolicyRules
impl RefUnwindSafe for PolicyRules
impl Send for PolicyRules
impl Sync for PolicyRules
impl Unpin for PolicyRules
impl UnwindSafe for PolicyRules
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,
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.