pub struct InventoryContext<'a> {
pub scope: &'a str,
pub scanner: &'a str,
pub source: &'a str,
pub root: Option<&'a str>,
pub files_scanned: Option<usize>,
}Fields§
§scope: &'a str§scanner: &'a str§source: &'a str§root: Option<&'a str>§files_scanned: Option<usize>Implementations§
Source§impl<'a> InventoryContext<'a>
impl<'a> InventoryContext<'a>
pub const fn new( scope: &'a str, scanner: &'a str, source: &'a str, root: Option<&'a str>, files_scanned: Option<usize>, ) -> Self
pub const fn source_syntax( source: &'a str, root: Option<&'a str>, files_scanned: Option<usize>, ) -> Self
pub const fn unknown_source_syntax() -> InventoryContext<'static>
pub const fn policy_migration( source: &'a str, root: Option<&'a str>, files_scanned: Option<usize>, ) -> Self
Trait Implementations§
Source§impl<'a> Clone for InventoryContext<'a>
impl<'a> Clone for InventoryContext<'a>
Source§fn clone(&self) -> InventoryContext<'a>
fn clone(&self) -> InventoryContext<'a>
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 moreimpl<'a> Copy for InventoryContext<'a>
Source§impl<'a> Debug for InventoryContext<'a>
impl<'a> Debug for InventoryContext<'a>
Source§impl<'a> Default for InventoryContext<'a>
impl<'a> Default for InventoryContext<'a>
Source§impl<'a> From<ReportContext<'a>> for InventoryContext<'a>
impl<'a> From<ReportContext<'a>> for InventoryContext<'a>
Source§fn from(context: ReportContext<'a>) -> Self
fn from(context: ReportContext<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for InventoryContext<'a>
impl<'a> RefUnwindSafe for InventoryContext<'a>
impl<'a> Send for InventoryContext<'a>
impl<'a> Sync for InventoryContext<'a>
impl<'a> Unpin for InventoryContext<'a>
impl<'a> UnsafeUnpin for InventoryContext<'a>
impl<'a> UnwindSafe for InventoryContext<'a>
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