Struct openwhisk_rust::Rule
source · pub struct Rule {
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<'de> Deserialize<'de> for Rule
impl<'de> Deserialize<'de> for Rule
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