fn filter_by_allowed_types(&self, resource: &Resource, config: &ResourceConfig) -> bool {
        if let (Some(allowed), Some(type_)) = (
            config.allowed_types.as_deref(),
            resource.resource_type.as_ref(),
        ) {
            !type_.iter().all(|t_| allowed.contains(&t_))
        } else {
            false
        }
    }
/// Filters a resource based on its type and types that are allowed
Filters a resource based on its type and types that are allowed
Filters a resource based on its type and types that are allowed
fn filter_by_allowed_types(&self, resource: &Resource, config: &ResourceConfig) -> bool {
        if let (Some(allowed), Some(type_)) = (
            config.allowed_types.as_deref(),
            resource.resource_type.as_ref(),
        ) {
            !type_.iter().all(|t_| allowed.contains(&t_))
        } else {
            false
        }
    }
fn filter_by_allowed_types ( & self , resource : & Resource , config : & ResourceConfig ) -> bool { if let ( Some ( allowed ) , Some ( type_ ) ) = ( config . allowed_types . as_deref ( ) , resource . resource_type . as_ref ( ) , ) { ! type_ . iter ( ) . all ( | t_ | allowed . contains ( & t_ ) ) } else { false } }
Filters a resource based on its type and types that are allowed
Filters a resource based on its type and types that are allowed
&self
resource
&Resource
config
&ResourceConfig