pub struct PolicyCreate {
pub name: String,
pub description: Option<String>,
pub mode: Mode,
pub directives: Option<Vec<Directive>>,
}Fields§
§name: String§description: Option<String>§mode: Mode§directives: Option<Vec<Directive>>Implementations§
Source§impl PolicyCreate
impl PolicyCreate
pub fn new(name: String, mode: Mode) -> PolicyCreate
Trait Implementations§
Source§impl Clone for PolicyCreate
impl Clone for PolicyCreate
Source§fn clone(&self) -> PolicyCreate
fn clone(&self) -> PolicyCreate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolicyCreate
impl Debug for PolicyCreate
Source§impl Default for PolicyCreate
impl Default for PolicyCreate
Source§fn default() -> PolicyCreate
fn default() -> PolicyCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyCreate
impl<'de> Deserialize<'de> for PolicyCreate
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 PolicyCreate
impl PartialEq for PolicyCreate
Source§impl Serialize for PolicyCreate
impl Serialize for PolicyCreate
impl StructuralPartialEq for PolicyCreate
Auto Trait Implementations§
impl Freeze for PolicyCreate
impl RefUnwindSafe for PolicyCreate
impl Send for PolicyCreate
impl Sync for PolicyCreate
impl Unpin for PolicyCreate
impl UnsafeUnpin for PolicyCreate
impl UnwindSafe for PolicyCreate
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