pub fn new(name: Cow<'a, str>, of_types: &[Type]) -> UnionMeta<'a> {
        UnionMeta {
            name,
            description: None,
            of_type_names: of_types
                .iter()
                .map(|t| t.innermost_name().to_owned())
                .collect(),
        }
    }
/// Build a new union type with the specified name and possible types
Build a new union type with the specified name and possible types
Build a new union type with the specified name and possible types
pub fn new(name: Cow<'a, str>, of_types: &[Type]) -> UnionMeta<'a> {
        UnionMeta {
            name,
            description: None,
            of_type_names: of_types
                .iter()
                .map(|t| t.innermost_name().to_owned())
                .collect(),
        }
    }
pub fn new ( name : Cow < ' a , str > , of_types : & [ Type ] ) -> UnionMeta < ' a > { UnionMeta { name , description : None , of_type_names : of_types . iter ( ) . map ( | t | t . innermost_name ( ) . to_owned ( ) ) . collect ( ) , } }
Build a new union type with the specified name and possible types
Build a new union type with the specified name and possible types
name
Cow<'a, str>
of_types
&[Type]
name
Cow<'a, str>
of_types
&[Type]