pub struct PolicyRequest {
pub name: String,
pub execution_logging: Option<bool>,
}
Expand description
PolicyRequest : 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.
Implementations§
Source§impl PolicyRequest
impl PolicyRequest
Sourcepub fn new(name: String) -> PolicyRequest
pub fn new(name: String) -> PolicyRequest
Policy Serializer
Trait Implementations§
Source§impl Clone for PolicyRequest
impl Clone for PolicyRequest
Source§fn clone(&self) -> PolicyRequest
fn clone(&self) -> PolicyRequest
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 PolicyRequest
impl Debug for PolicyRequest
Source§impl Default for PolicyRequest
impl Default for PolicyRequest
Source§fn default() -> PolicyRequest
fn default() -> PolicyRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyRequest
impl<'de> Deserialize<'de> for PolicyRequest
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 PolicyRequest
impl PartialEq for PolicyRequest
Source§impl Serialize for PolicyRequest
impl Serialize for PolicyRequest
impl StructuralPartialEq for PolicyRequest
Auto Trait Implementations§
impl Freeze for PolicyRequest
impl RefUnwindSafe for PolicyRequest
impl Send for PolicyRequest
impl Sync for PolicyRequest
impl Unpin for PolicyRequest
impl UnwindSafe for PolicyRequest
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