pub fn new<T>(name: &str, ty: T) -> Self
    where
        T: Into<Type>,
    {
        Field {
            name: name.into(),
            ty: ty.into(),
            documentation: Vec::new(),
            annotation: Vec::new(),
        }
    }
/// Return a field definition with the provided name and type
Return a field definition with the provided name and type
Return a field definition with the provided name and type
pub fn new<T>(name: &str, ty: T) -> Self
    where
        T: Into<Type>,
    {
        Field {
            name: name.into(),
            ty: ty.into(),
            documentation: Vec::new(),
            annotation: Vec::new(),
        }
    }
pub fn new < T > ( name : & str , ty : T ) -> Self where T : Into < Type > , { Field { name : name . into ( ) , ty : ty . into ( ) , documentation : Vec :: new ( ) , annotation : Vec :: new ( ) , } }
Return a field definition with the provided name and type
Return a field definition with the provided name and type
name
&str
ty
T