Trait bigerror::OptionReport
source · pub trait OptionReport {
type Some;
// Required methods
fn ok_or_not_found(self) -> Result<Self::Some, Report<NotFound>>;
fn ok_or_not_found_kv<K, V>(
self,
key: K,
value: V
) -> Result<Self::Some, Report<NotFound>>
where K: Display,
V: Display;
fn ok_or_not_found_field(
self,
field: &'static str
) -> Result<Self::Some, Report<NotFound>>;
fn ok_or_not_found_by<K: Display>(
self,
key: K
) -> Result<Self::Some, Report<NotFound>>;
}Required Associated Types§
Required Methods§
fn ok_or_not_found(self) -> Result<Self::Some, Report<NotFound>>
fn ok_or_not_found_kv<K, V>( self, key: K, value: V ) -> Result<Self::Some, Report<NotFound>>
fn ok_or_not_found_field( self, field: &'static str ) -> Result<Self::Some, Report<NotFound>>
fn ok_or_not_found_by<K: Display>( self, key: K ) -> Result<Self::Some, Report<NotFound>>
Object Safety§
This trait is not object safe.