pub struct PolicySettings {
pub offline: bool,
pub all_targets: bool,
pub max_suggestions: usize,
pub min_confidence: f64,
}Expand description
Global policy settings.
Fields§
§offline: boolWhether to run in offline mode by default.
all_targets: boolWhether to include dev-dependencies in analysis by default.
max_suggestions: usizeMaximum number of suggestions to show per run (0 = unlimited).
min_confidence: f64Reserved confidence threshold for future machine-assisted suggestions.
Trait Implementations§
Source§impl Clone for PolicySettings
impl Clone for PolicySettings
Source§fn clone(&self) -> PolicySettings
fn clone(&self) -> PolicySettings
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 PolicySettings
impl Debug for PolicySettings
Source§impl Default for PolicySettings
impl Default for PolicySettings
Source§fn default() -> PolicySettings
fn default() -> PolicySettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicySettings
impl<'de> Deserialize<'de> for PolicySettings
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 PolicySettings
impl RefUnwindSafe for PolicySettings
impl Send for PolicySettings
impl Sync for PolicySettings
impl Unpin for PolicySettings
impl UnsafeUnpin for PolicySettings
impl UnwindSafe for PolicySettings
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