pub fn validate(self, name: &str) -> Result<(),ApiError> {

        if let Some(item) = self.results.into_iter().find(|m| m.name == name) {
            item.as_result()
        } else {
            Err(ApiError::NoResourceFounded(name.to_owned()))
        }
        

    }
/// validate and extract a single response
validate and extract a single response
validate and extract a single response
pub fn validate(self, name: &str) -> Result<(),ApiError> {
        if let Some(item) = self.results.into_iter().find(|m| m.name == name) {
            item.as_result()
        } else {
            Err(ApiError::NoResourceFounded(name.to_owned()))
        }
    }
pub fn validate ( self , name : & str ) -> Result < ( ) , ApiError > { if let Some ( item ) = self . results . into_iter ( ) . find ( | m | m . name == name ) { item . as_result ( ) } else { Err ( ApiError :: NoResourceFounded ( name . to_owned ( ) ) ) } }
validate and extract a single response
validate and extract a single response
self
name
&str
self
name
&str