pub trait Findable {
type G;
type L;
// Required methods
fn get_ep(&self) -> Self::G;
fn list_ep(&self) -> Self::L;
// Provided method
fn locate_resource_in_list<C: RestClient>(
&self,
data: Vec<Value>,
) -> Result<Value, ApiError<C::Error>> { ... }
}Expand description
Trait for findable resources that combines GET and LIST endpoint
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn locate_resource_in_list<C: RestClient>(
&self,
data: Vec<Value>,
) -> Result<Value, ApiError<C::Error>>
fn locate_resource_in_list<C: RestClient>( &self, data: Vec<Value>, ) -> Result<Value, ApiError<C::Error>>
Locate single resource in resources list
Object Safety§
This trait is not object safe.