pub fn new(type_def: TypeDef, list: bool, required: bool) -> EndpointType {
        EndpointType {
            type_def,
            list,
            required,
        }
    }
/// Creates a new [`EndpointType`] configuration item, describing either the input or output
/// type of a custom GraphQL endpoint
///
/// [`EndpointType`]: ./struct.EndpointType.html
///
/// # Examples
///
/// ```rust
/// # use warpgrapher::engine::config::{EndpointType, GraphqlType, TypeDef};
///
/// let et = EndpointType::new(TypeDef::Scalar(GraphqlType::Int), false, true);
/// ```
Creates a new [`EndpointType`] configuration item, describing either the input or output
type of a custom GraphQL endpoint


Creates a new [ ` EndpointType ` ] configuration item describing either the input or output type of a custom GraphQL endpoint
pub fn new(type_def: TypeDef, list: bool, required: bool) -> EndpointType {
        EndpointType {
            type_def,
            list,
            required,
        }
    }
pub fn new ( type_def : TypeDef , list : bool , required : bool ) -> EndpointType { EndpointType { type_def , list , required , } }
Creates a new [`EndpointType`] configuration item, describing either the input or output
type of a custom GraphQL endpoint
Creates a new [ ` EndpointType ` ] configuration item describing either the input or output type of a custom GraphQL endpoint
type_def
TypeDef
list
bool
required
bool
type_def
TypeDef
list
bool
required
bool
examples
None
use warpgrapher::engine::config::{endpointtype, graphqltype, typedef};
let et = EndpointType::new(TypeDef::Scalar(GraphqlType::Int), false, true);
```
let et = EndpointType :: new ( TypeDef :: Scalar ( GraphqlType :: Int ) false true ) ; ` ` `