pub struct PlanPolicy {
pub allow: Vec<String>,
pub deny: Vec<String>,
pub allow_guarded: bool,
pub allow_unsafe: bool,
pub allow_dirty: bool,
pub max_ops: Option<u64>,
pub max_files: Option<u64>,
pub max_patch_bytes: Option<u64>,
}Fields§
§allow: Vec<String>§deny: Vec<String>§allow_guarded: bool§allow_unsafe: bool§allow_dirty: bool§max_ops: Option<u64>§max_files: Option<u64>§max_patch_bytes: Option<u64>Trait Implementations§
Source§impl Clone for PlanPolicy
impl Clone for PlanPolicy
Source§fn clone(&self) -> PlanPolicy
fn clone(&self) -> PlanPolicy
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 PlanPolicy
impl Debug for PlanPolicy
Source§impl Default for PlanPolicy
impl Default for PlanPolicy
Source§fn default() -> PlanPolicy
fn default() -> PlanPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlanPolicy
impl<'de> Deserialize<'de> for PlanPolicy
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
Auto Trait Implementations§
impl Freeze for PlanPolicy
impl RefUnwindSafe for PlanPolicy
impl Send for PlanPolicy
impl Sync for PlanPolicy
impl Unpin for PlanPolicy
impl UnsafeUnpin for PlanPolicy
impl UnwindSafe for PlanPolicy
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