Struct csaf_walker::visitors::store::StoreVisitor
source · #[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 RetrievedVisitor for StoreVisitor
impl RetrievedVisitor for StoreVisitor
type Error = StoreRetrievedError
type Context = Rc<ProviderMetadata>
async fn visit_context( &self, context: &RetrievalContext<'_> ) -> Result<Self::Context, Self::Error>
async fn visit_advisory( &self, _context: &Self::Context, result: Result<RetrievedAdvisory, RetrievalError> ) -> Result<(), Self::Error>
source§impl ValidatedVisitor for StoreVisitor
impl ValidatedVisitor for StoreVisitor
type Error = StoreValidatedError
type Context = ()
async fn visit_context( &self, context: &ValidationContext<'_> ) -> Result<Self::Context, Self::Error>
async fn visit_advisory( &self, _context: &Self::Context, result: Result<ValidatedAdvisory, ValidationError> ) -> 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 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