pub fn new(
        name: String,
        class: EndpointClass,
        input: Option<EndpointType>,
        output: EndpointType,
    ) -> Endpoint {
        Endpoint {
            name,
            class,
            input,
            output,
        }
    }
/// Creates a new configuration item for a custom GraphQL endpoint
///
/// # Examples
///
/// ```rust
/// # use warpgrapher::engine::config::{Endpoint, EndpointClass, EndpointType, TypeDef,
/// #   GraphqlType};
///
/// let e = Endpoint::new("CountItems".to_string(), EndpointClass::Query, None,
///     EndpointType::new(TypeDef::Scalar(GraphqlType::Int), false, true));
/// ```
Creates a new configuration item for a custom GraphQL endpoint
Creates a new configuration item for a custom GraphQL endpoint
pub fn new(
        name: String,
        class: EndpointClass,
        input: Option<EndpointType>,
        output: EndpointType,
    ) -> Endpoint {
        Endpoint {
            name,
            class,
            input,
            output,
        }
    }
pub fn new ( name : String , class : EndpointClass , input : Option < EndpointType > , output : EndpointType , ) -> Endpoint { Endpoint { name , class , input , output , } }
Creates a new configuration item for a custom GraphQL endpoint
Creates a new configuration item for a custom GraphQL endpoint
name
String
class
EndpointClass
input
Option<EndpointType>
output
EndpointType
name
String
class
EndpointClass
input
Option<EndpointType>
output
EndpointType
examples
None
use warpgrapher::engine::config::{endpoint, endpointclass, endpointtype, typedef,
None
graphqltype};
let e = Endpoint::new("CountItems".to_string(), EndpointClass::Query, None,
EndpointType::new(TypeDef::Scalar(GraphqlType::Int), false, true));
```
let e = Endpoint :: new ( " CountItems " . to_string () EndpointClass :: Query None EndpointType :: new ( TypeDef :: Scalar ( GraphqlType :: Int ) false true )) ; ` ` `