Trait graphql_starter::error::ResultExt

source ·
pub trait ResultExt {
    // Required method
    fn with_property(self, key: &str, value: Value) -> Self;

    // Provided method
    fn with_str_property(self, key: &str, value: impl Into<String>) -> Self
       where Self: Sized { ... }
}
Expand description

Utility trait to extend a Result

Required Methods§

source

fn with_property(self, key: &str, value: Value) -> Self

Appends a property to the error side of the result

Provided Methods§

source

fn with_str_property(self, key: &str, value: impl Into<String>) -> Self
where Self: Sized,

Appends an string property to the error side of the result

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ResultExt for Result<T>