async fn validate_spu_for_registered(&self, id: SpuId) -> bool {
        for (_, spu) in self.read().await.iter() {
            if spu.spec.id == id {
                return true;
            }
        }
        false
    }
// check if spu can be registered
check if spu can be registered
check if spu can be registered
async fn validate_spu_for_registered(&self, id: SpuId) -> bool {
        for (_, spu) in self.read().await.iter() {
            if spu.spec.id == id {
                return true;
            }
        }
        false
    }
async fn validate_spu_for_registered ( & self , id : SpuId ) -> bool { for ( _ , spu ) in self . read ( ) . await . iter ( ) { if spu . spec . id == id { return true ; } } false }
check if spu can be registered
check if spu can be registered
&self
id
SpuId
&self
id
SpuId