pub fn new(
        name: String,
        list: bool,
        nodes: Vec<String>,
        props: Vec<Property>,
        endpoints: EndpointsFilter,
        resolver: Option<String>,
    ) -> Relationship {
        Relationship {
            name,
            list,
            nodes,
            props,
            endpoints,
            resolver,
        }
    }
/// Creates a new Relationship struct.
///
/// # Arguments
///
/// * a String for the name of the relationship
/// * a boolean that, if true, indicates that the property is a list, and if false, that the
/// relationship is to a single node
/// * a list of possible destination node types for the relationship. A single element in the
/// list indicates that this is a single-type relationship, whereas more than one element
/// indicates a multi-type relationship.
/// * an [`EndpointsFilter`] struct indicating which of the standard operations (create, read,
/// update, and delete) should be generated for this relationship
/// * an optional string providing the name of a resolver, if the relationship is a dynamic
/// relationship with a custom resolver
///
/// [`EndpointsFilter`]: ./struct.EndpointsFilter.html
///
/// # Examples
///
/// ```rust
/// # use warpgrapher::engine::config::{EndpointsFilter, Relationship};
///
/// let r = Relationship::new("name".to_string(), false, vec!["User".to_string()], vec![],
///     EndpointsFilter::all(), None);
/// ```
Creates a new Relationship struct.
Creates a new Relationship struct .
pub fn new(
        name: String,
        list: bool,
        nodes: Vec<String>,
        props: Vec<Property>,
        endpoints: EndpointsFilter,
        resolver: Option<String>,
    ) -> Relationship {
        Relationship {
            name,
            list,
            nodes,
            props,
            endpoints,
            resolver,
        }
    }
pub fn new ( name : String , list : bool , nodes : Vec < String > , props : Vec < Property > , endpoints : EndpointsFilter , resolver : Option < String > , ) -> Relationship { Relationship { name , list , nodes , props , endpoints , resolver , } }
Creates a new Relationship struct.
Creates a new Relationship struct .
name
String
list
bool
nodes
Vec<String>
props
Vec<Property>
endpoints
EndpointsFilter
resolver
Option<String>
name
String
list
bool
nodes
Vec<String>
props
Vec<Property>
endpoints
EndpointsFilter
resolver
Option<String>
examples
None
use warpgrapher::engine::config::{endpointsfilter, relationship};
let r = Relationship::new("name".to_string(), false, vec!["User".to_string()], vec![],
EndpointsFilter::all(), None);
```
let r = Relationship :: new ( " name " . to_string () false vec! [ " User " . to_string () ] vec! [] EndpointsFilter :: all () None ) ; ` ` `