pub fn on_subnet_metadata(&self, subnet_id: SubnetId) -> bool {
        if let Some(meta_data) = &self.meta_data {
            return meta_data.attnets.get(*subnet_id as usize).unwrap_or(false);
        }
        false
    }
/// Returns if the peer is subscribed to a given `SubnetId` from the metadata attnets field.
Returns if the peer is subscribed to a given `SubnetId` from the metadata attnets field.
Returns if the peer is subscribed to a given ` SubnetId ` from the metadata attnets field .
pub fn on_subnet_metadata(&self, subnet_id: SubnetId) -> bool {
        if let Some(meta_data) = &self.meta_data {
            return meta_data.attnets.get(*subnet_id as usize).unwrap_or(false);
        }
        false
    }
pub fn on_subnet_metadata ( & self , subnet_id : SubnetId ) -> bool { if let Some ( meta_data ) = & self . meta_data { return meta_data . attnets . get ( * subnet_id as usize ) . unwrap_or ( false ) ; } false }
Returns if the peer is subscribed to a given `SubnetId` from the metadata attnets field.
Returns if the peer is subscribed to a given ` SubnetId ` from the metadata attnets field .
&self
subnet_id
SubnetId