Struct wick_config::audit::Audit
source · #[non_exhaustive]pub struct Audit {
pub name: String,
pub resources: Vec<AuditedResourceBinding>,
pub imports: Vec<Audit>,
}Expand description
An audit report for a component or application.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the audited element.
resources: Vec<AuditedResourceBinding>The resources used by the audited element.
imports: Vec<Audit>The components the audited element imports.
Implementations§
source§impl Audit
impl Audit
sourcepub fn new(tree: &ConfigurationTreeNode<WickConfiguration>) -> Self
pub fn new(tree: &ConfigurationTreeNode<WickConfiguration>) -> Self
Audit a configuration tree.
sourcepub fn new_flattened(
elements: &[ConfigOrDefinition<WickConfiguration>]
) -> Vec<Audit>
pub fn new_flattened( elements: &[ConfigOrDefinition<WickConfiguration>] ) -> Vec<Audit>
Audit a flattened list of configuration elements.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Audit
impl Send for Audit
impl Sync for Audit
impl Unpin for Audit
impl UnwindSafe for Audit
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