#[non_exhaustive]pub struct StoreVisitor {
pub base: PathBuf,
pub no_timestamps: bool,
pub no_xattrs: bool,
}Expand description
Stores all data so that it can be used as a crate::source::Source later.
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.base: PathBufthe output base
no_timestamps: boolwhether to set the file modification timestamps
no_xattrs: boolwhether to store additional metadata (like the etag) using extended attributes
Implementations§
Trait Implementations§
Source§impl<S: Source> RetrievedVisitor<S> for StoreVisitor
impl<S: Source> RetrievedVisitor<S> for StoreVisitor
type Error = StoreRetrievedError<S>
type Context = ()
async fn visit_context( &self, context: &RetrievalContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_sbom( &self, _context: &Self::Context, result: Result<RetrievedSbom, RetrievalError<DiscoveredSbom, S>>, ) -> Result<(), Self::Error>
Source§impl<S: Source> ValidatedVisitor<S> for StoreVisitor
impl<S: Source> ValidatedVisitor<S> for StoreVisitor
type Error = StoreValidatedError<S>
type Context = ()
async fn visit_context( &self, context: &ValidationContext<'_>, ) -> Result<Self::Context, Self::Error>
async fn visit_sbom( &self, _context: &Self::Context, result: Result<ValidatedSbom, ValidationError<S>>, ) -> Result<(), Self::Error>
Auto Trait Implementations§
impl Freeze for StoreVisitor
impl RefUnwindSafe for StoreVisitor
impl Send for StoreVisitor
impl Sync for StoreVisitor
impl Unpin for StoreVisitor
impl UnsafeUnpin for StoreVisitor
impl UnwindSafe for StoreVisitor
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