pub struct PackSuiteOptions {
pub manifest_override: Option<PathBuf>,
pub require_flows: bool,
pub runtime_adapter: Option<Arc<dyn PackRuntimeAdapter>>,
pub require_runtime_match: bool,
}Expand description
Configuration knobs for pack verification.
Fields§
§manifest_override: Option<PathBuf>Optional manifest path override.
require_flows: boolRequire at least one flow to be exported.
runtime_adapter: Option<Arc<dyn PackRuntimeAdapter>>Optional runtime adapter used to query the component for its exports.
require_runtime_match: boolFail verification if runtime exports diverge from the manifest.
Implementations§
Source§impl PackSuiteOptions
impl PackSuiteOptions
Sourcepub fn verify_pack_exports(
&self,
component_path: impl AsRef<Path>,
) -> Result<PackReport>
pub fn verify_pack_exports( &self, component_path: impl AsRef<Path>, ) -> Result<PackReport>
Executes the pack export verification with custom options.
Sourcepub fn with_runtime_adapter<A>(self, adapter: A) -> Selfwhere
A: PackRuntimeAdapter + 'static,
pub fn with_runtime_adapter<A>(self, adapter: A) -> Selfwhere
A: PackRuntimeAdapter + 'static,
Convenience helper to configure a runtime adapter.
Sourcepub fn with_manifest_override(self, manifest: impl Into<PathBuf>) -> Self
pub fn with_manifest_override(self, manifest: impl Into<PathBuf>) -> Self
Convenience helper to override the manifest discovery path.
Sourcepub fn allow_runtime_mismatch(self) -> Self
pub fn allow_runtime_mismatch(self) -> Self
Allows diverging runtime exports without failing verification.
Trait Implementations§
Source§impl Clone for PackSuiteOptions
impl Clone for PackSuiteOptions
Source§fn clone(&self) -> PackSuiteOptions
fn clone(&self) -> PackSuiteOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackSuiteOptions
impl Debug for PackSuiteOptions
Auto Trait Implementations§
impl Freeze for PackSuiteOptions
impl !RefUnwindSafe for PackSuiteOptions
impl Send for PackSuiteOptions
impl Sync for PackSuiteOptions
impl Unpin for PackSuiteOptions
impl !UnwindSafe for PackSuiteOptions
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