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§
sourcefn with_property(self, key: &str, value: Value) -> Self
fn with_property(self, key: &str, value: Value) -> Self
Appends a property to the error side of the result
Provided Methods§
Object Safety§
This trait is not object safe.