fn has_attribute(&self,attribute: &str) -> bool {
        self.args
            .iter()
            .find(|arg| match arg {
                NestedMeta::Meta(meta) => match meta {
                    Meta::Path(path) => path
                        .segments
                        .iter()
                        .find(|seg| seg.ident == attribute)
                        .is_some(),
                    _ => false,
                },
                _ => false,
            })
            .is_some()
    }
/// check if we have attribute, this should be refactored to use attribute parser
check if we have attribute, this should be refactored to use attribute parser
check if we have attribute this should be refactored to use attribute parser
fn has_attribute(&self,attribute: &str) -> bool {
        self.args
            .iter()
            .find(|arg| match arg {
                NestedMeta::Meta(meta) => match meta {
                    Meta::Path(path) => path
                        .segments
                        .iter()
                        .find(|seg| seg.ident == attribute)
                        .is_some(),
                    _ => false,
                },
                _ => false,
            })
            .is_some()
    }
fn has_attribute ( & self , attribute : & str ) -> bool { self . args . iter ( ) . find ( | arg | match arg { NestedMeta :: Meta ( meta ) => match meta { Meta :: Path ( path ) => path . segments . iter ( ) . find ( | seg | seg . ident == attribute ) . is_some ( ) , _ => false , } , _ => false , } ) . is_some ( ) }
check if we have attribute, this should be refactored to use attribute parser
check if we have attribute this should be refactored to use attribute parser
&self
attribute
&str