[−][src]Struct cargo_audit::config::AuditConfig
cargo audit
configuration:
An optional TOML config file located in ~/.cargo/audit.toml
Fields
advisories: AdvisoryConfig
Advisory-related configuration
database: DatabaseConfig
Advisory Database configuration
output: OutputConfig
Output configuration
target: TargetConfig
Target-related configuration
Methods
impl AuditConfig
[src]
pub fn report_settings(&self) -> Settings
[src]
Get audit report settings from the configuration
Trait Implementations
impl Clone for AuditConfig
[src]
fn clone(&self) -> AuditConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for AuditConfig
[src]
fn default() -> AuditConfig
[src]
impl Debug for AuditConfig
[src]
impl Config for AuditConfig
[src]
fn load_toml<T>(toml_string: T) -> Result<Self, Error<FrameworkErrorKind>> where
T: AsRef<str>,
[src]
T: AsRef<str>,
fn load_toml_file<P>(path: &P) -> Result<Self, Error<FrameworkErrorKind>> where
P: AsRef<CanonicalPath>,
[src]
P: AsRef<CanonicalPath>,
impl Configurable<AuditConfig> for CargoAuditCommand
[src]
fn config_path(&self) -> Option<PathBuf>
[src]
Location of audit.toml
(if it exists)
fn process_config(
&self,
config: AuditConfig
) -> Result<AuditConfig, FrameworkError>
[src]
&self,
config: AuditConfig
) -> Result<AuditConfig, FrameworkError>
Override loaded config with explicit command-line arguments
impl Serialize for AuditConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for AuditConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for AuditConfig
impl Sync for AuditConfig
impl Unpin for AuditConfig
impl UnwindSafe for AuditConfig
impl RefUnwindSafe for AuditConfig
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,