pub struct PolicyRequestModel {
pub type: PolicyType,
pub enabled: bool,
pub data: Option<HashMap<String, Value>>,
}
Fields§
§type: PolicyType
§enabled: bool
§data: Option<HashMap<String, Value>>
Implementations§
Source§impl PolicyRequestModel
impl PolicyRequestModel
pub fn new(type: PolicyType, enabled: bool) -> PolicyRequestModel
Trait Implementations§
Source§impl Clone for PolicyRequestModel
impl Clone for PolicyRequestModel
Source§fn clone(&self) -> PolicyRequestModel
fn clone(&self) -> PolicyRequestModel
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 PolicyRequestModel
impl Debug for PolicyRequestModel
Source§impl Default for PolicyRequestModel
impl Default for PolicyRequestModel
Source§fn default() -> PolicyRequestModel
fn default() -> PolicyRequestModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyRequestModel
impl<'de> Deserialize<'de> for PolicyRequestModel
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 PolicyRequestModel
impl PartialEq for PolicyRequestModel
Source§impl Serialize for PolicyRequestModel
impl Serialize for PolicyRequestModel
impl StructuralPartialEq for PolicyRequestModel
Auto Trait Implementations§
impl Freeze for PolicyRequestModel
impl RefUnwindSafe for PolicyRequestModel
impl Send for PolicyRequestModel
impl Sync for PolicyRequestModel
impl Unpin for PolicyRequestModel
impl UnwindSafe for PolicyRequestModel
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