pub fn validate(self) -> Result<(),ApiError> {

        // ? what is name, so just find first item
        if let Some(item) = self.results.into_iter().find(|_| true ) {
            item.as_result()
        } else {
            Err(ApiError::NoResourceFounded("custom spu".to_owned()))
        }
        
    }
/// validate and extract a single response
validate and extract a single response
validate and extract a single response
pub fn validate(self) -> Result<(),ApiError> {
        // ? what is name, so just find first item
        if let Some(item) = self.results.into_iter().find(|_| true ) {
            item.as_result()
        } else {
            Err(ApiError::NoResourceFounded("custom spu".to_owned()))
        }
    }
pub fn validate ( self ) -> Result < ( ) , ApiError > { // ? what is name, so just find first item if let Some ( item ) = self . results . into_iter ( ) . find ( | _ | true ) { item . as_result ( ) } else { Err ( ApiError :: NoResourceFounded ( " " . to_owned ( ) ) ) } }
validate and extract a single response
validate and extract a single response
self
self