pub struct RuleResponse {
pub namespace: String,
pub name: String,
pub version: String,
pub annotations: Vec<KeyValue>,
pub status: String,
pub trigger: Value,
pub action: Value,
pub publish: bool,
pub updated: i64,
}
Expand description
Representation of Rule
Fields§
§namespace: String
A rule must have a namspace where it exists
name: String
A rule must have a name to represent it
version: String
A action must have a versioning
annotations: Vec<KeyValue>
Keyvalue pair for annotate rules
status: String
The execution status of the rule
trigger: Value
A rule must have a trigger mapped to it
action: Value
A rule must have an action to pass the trigger
publish: bool
Toggle to publish rule
updated: i64
Updated version count of actions
Trait Implementations§
Source§impl Clone for RuleResponse
impl Clone for RuleResponse
Source§fn clone(&self) -> RuleResponse
fn clone(&self) -> RuleResponse
Returns a copy 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 RuleResponse
impl Debug for RuleResponse
Source§impl Default for RuleResponse
impl Default for RuleResponse
Source§fn default() -> RuleResponse
fn default() -> RuleResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuleResponse
impl<'de> Deserialize<'de> for RuleResponse
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 RuleResponse
impl RefUnwindSafe for RuleResponse
impl Send for RuleResponse
impl Sync for RuleResponse
impl Unpin for RuleResponse
impl UnwindSafe for RuleResponse
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