pub struct DummyPolicy {
pub pk: Uuid,
pub name: String,
pub execution_logging: Option<bool>,
pub component: String,
pub verbose_name: String,
pub verbose_name_plural: String,
pub meta_model_name: String,
pub bound_to: i32,
pub result: Option<bool>,
pub wait_min: Option<i32>,
pub wait_max: Option<i32>,
}
Expand description
DummyPolicy : Dummy Policy Serializer
Fields§
§pk: Uuid
§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.
component: String
Get object component so that we know how to edit the object
verbose_name: String
Return object’s verbose_name
verbose_name_plural: String
Return object’s plural verbose_name
meta_model_name: String
Return internal model name
bound_to: i32
Return objects policy is bound to
result: Option<bool>
§wait_min: Option<i32>
§wait_max: Option<i32>
Implementations§
Trait Implementations§
Source§impl Clone for DummyPolicy
impl Clone for DummyPolicy
Source§fn clone(&self) -> DummyPolicy
fn clone(&self) -> DummyPolicy
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 DummyPolicy
impl Debug for DummyPolicy
Source§impl Default for DummyPolicy
impl Default for DummyPolicy
Source§fn default() -> DummyPolicy
fn default() -> DummyPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DummyPolicy
impl<'de> Deserialize<'de> for DummyPolicy
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 DummyPolicy
impl PartialEq for DummyPolicy
Source§impl Serialize for DummyPolicy
impl Serialize for DummyPolicy
impl StructuralPartialEq for DummyPolicy
Auto Trait Implementations§
impl Freeze for DummyPolicy
impl RefUnwindSafe for DummyPolicy
impl Send for DummyPolicy
impl Sync for DummyPolicy
impl Unpin for DummyPolicy
impl UnwindSafe for DummyPolicy
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