Skip to main content

CheckOutcome

Trait CheckOutcome 

Source
pub trait CheckOutcome {
    // Required method
    fn into_issues(
        self,
        field: &str,
        code: &str,
        reason: &str,
    ) -> Vec<FieldIssue>;
}
Expand description

Result types supported by arbitrary #[check(with = ...)] functions and closures.

Required Methods§

Source

fn into_issues(self, field: &str, code: &str, reason: &str) -> Vec<FieldIssue>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CheckOutcome for Result<(), &'static str>

Source§

fn into_issues(self, field: &str, code: &str, _reason: &str) -> Vec<FieldIssue>

Source§

impl CheckOutcome for Result<(), (&'static str, &'static str)>

Source§

fn into_issues(self, field: &str, _code: &str, _reason: &str) -> Vec<FieldIssue>

Source§

impl CheckOutcome for Result<(), (String, String)>

Source§

fn into_issues(self, field: &str, _code: &str, _reason: &str) -> Vec<FieldIssue>

Source§

impl CheckOutcome for Result<(), FieldIssue>

Source§

fn into_issues(self, field: &str, _code: &str, _reason: &str) -> Vec<FieldIssue>

Source§

impl CheckOutcome for Result<(), String>

Source§

fn into_issues(self, field: &str, code: &str, _reason: &str) -> Vec<FieldIssue>

Source§

impl CheckOutcome for Result<(), Vec<FieldIssue>>

Source§

fn into_issues(self, field: &str, _code: &str, _reason: &str) -> Vec<FieldIssue>

Source§

impl CheckOutcome for bool

Source§

fn into_issues(self, field: &str, code: &str, reason: &str) -> Vec<FieldIssue>

Implementors§