pub struct ExternalRuleSource {
pub name: String,
pub content: String,
}Expand description
A pre-read rule file provided by the caller (custom Rego/CEL or Guard DSL).
name identifies the rule source in error messages and logging. For a
file-backed rule this is typically the filesystem path; otherwise it is
whatever label the caller provides.
content is the full source text of the rule file.
Fields§
§name: String§content: StringTrait Implementations§
Source§impl Clone for ExternalRuleSource
impl Clone for ExternalRuleSource
Source§impl Debug for ExternalRuleSource
impl Debug for ExternalRuleSource
Source§impl<'de> Deserialize<'de> for ExternalRuleSource
impl<'de> Deserialize<'de> for ExternalRuleSource
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 ExternalRuleSource
impl RefUnwindSafe for ExternalRuleSource
impl Send for ExternalRuleSource
impl Sync for ExternalRuleSource
impl Unpin for ExternalRuleSource
impl UnsafeUnpin for ExternalRuleSource
impl UnwindSafe for ExternalRuleSource
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