pub struct EventMatcherPolicyRequest {
pub name: String,
pub execution_logging: Option<bool>,
pub action: Option<Option<EventActions>>,
pub client_ip: Option<Option<String>>,
pub app: Option<Option<AppEnum>>,
pub model: Option<Option<ModelEnum>>,
}Expand description
EventMatcherPolicyRequest : Event Matcher Policy Serializer
Fields§
§name: String§execution_logging: Option<bool>When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
action: Option<Option<EventActions>>Match created events with this action type. When left empty, all action types will be matched.
client_ip: Option<Option<String>>Matches Event’s Client IP (strict matching, for network matching use an Expression Policy)
app: Option<Option<AppEnum>>Match events created by selected application. When left empty, all applications are matched.
model: Option<Option<ModelEnum>>Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application’s models are matched.
Implementations§
Source§impl EventMatcherPolicyRequest
impl EventMatcherPolicyRequest
Sourcepub fn new(name: String) -> EventMatcherPolicyRequest
pub fn new(name: String) -> EventMatcherPolicyRequest
Event Matcher Policy Serializer
Trait Implementations§
Source§impl Clone for EventMatcherPolicyRequest
impl Clone for EventMatcherPolicyRequest
Source§fn clone(&self) -> EventMatcherPolicyRequest
fn clone(&self) -> EventMatcherPolicyRequest
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 EventMatcherPolicyRequest
impl Debug for EventMatcherPolicyRequest
Source§impl Default for EventMatcherPolicyRequest
impl Default for EventMatcherPolicyRequest
Source§fn default() -> EventMatcherPolicyRequest
fn default() -> EventMatcherPolicyRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventMatcherPolicyRequest
impl<'de> Deserialize<'de> for EventMatcherPolicyRequest
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
impl StructuralPartialEq for EventMatcherPolicyRequest
Auto Trait Implementations§
impl Freeze for EventMatcherPolicyRequest
impl RefUnwindSafe for EventMatcherPolicyRequest
impl Send for EventMatcherPolicyRequest
impl Sync for EventMatcherPolicyRequest
impl Unpin for EventMatcherPolicyRequest
impl UnsafeUnpin for EventMatcherPolicyRequest
impl UnwindSafe for EventMatcherPolicyRequest
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