accepts-codegen 0.0.1

Rust toolkit for composing synchronous and asynchronous acceptor pipelines
Documentation
use syn::{
    AttrStyle, Attribute, Meta,
    token::{Bracket, Pound},
};

pub trait AttributeConstructExt {
    fn from_style_meta(style: AttrStyle, meta: Meta) -> Attribute;
}

impl AttributeConstructExt for Attribute {
    fn from_style_meta(style: AttrStyle, meta: Meta) -> Attribute {
        Attribute {
            pound_token: Pound::default(),
            style,
            bracket_token: Bracket::default(),
            meta,
        }
    }
}