pub enum OutputFormat {
Human,
Json,
Junit,
Sarif,
GitHub,
Agent,
}Expand description
Supported output formats for validation reports
Variants§
Human
Human-readable format with colors and context
Json
JSON format for programmatic consumption
Junit
JUnit XML format for CI/CD integration
Sarif
SARIF format for security tools
GitHub
GitHub Actions format for workflow integration
Agent
Agent-friendly format for easy parsing: [line:path]
Implementations§
Source§impl OutputFormat
impl OutputFormat
Sourcepub fn all_formats() -> &'static [&'static str]
pub fn all_formats() -> &'static [&'static str]
Get all available format names
Sourcepub fn validate_for_context(
&self,
is_ci_environment: bool,
) -> GuardianResult<()>
pub fn validate_for_context( &self, is_ci_environment: bool, ) -> GuardianResult<()>
Validate that this format is appropriate for the given context
Architecture Principle: Value objects should validate their domain rules
Sourcepub fn supports_colors(&self) -> bool
pub fn supports_colors(&self) -> bool
Check if this format supports colored output
Sourcepub fn is_structured(&self) -> bool
pub fn is_structured(&self) -> bool
Check if this format produces structured data
Trait Implementations§
Source§impl Clone for OutputFormat
impl Clone for OutputFormat
Source§fn clone(&self) -> OutputFormat
fn clone(&self) -> OutputFormat
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 OutputFormat
impl Debug for OutputFormat
Source§impl FromStr for OutputFormat
impl FromStr for OutputFormat
Source§impl PartialEq for OutputFormat
impl PartialEq for OutputFormat
impl Copy for OutputFormat
impl Eq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl Freeze for OutputFormat
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnwindSafe for OutputFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more