pub fn new(
        name: String,
        hidden: bool,
        type_name: String,
        required: bool,
        list: bool,
        resolver: Option<String>,
        validator: Option<String>,
    ) -> Property {
        Property {
            name,
            hidden,
            type_name,
            required,
            list,
            resolver,
            validator,
        }
    }
/// Creates a new Property struct.
///
/// # Arguments
///
/// * a String for the name of the property
/// * a String for the type of the property
/// * a boolean that, if true, indicatees that the property is mandatory, and if false, that
/// the property is optional
/// * a boolean that, if true, indicates that the property is a list of scalers, and if false,
/// that the property is a single value
/// * an optional string providing the name of a resolver, if the property is a dynamic
/// property with a custom resolver, and
/// * an optional string providing the name of a custom validator
///
/// # Examples
///
/// ```rust
/// # use warpgrapher::engine::config::Property;
///
/// let p = Property::new("name".to_string(), false, "String".to_string(), true, false, None, None);
/// ```
Creates a new Property struct.
Creates a new Property struct .
pub fn new(
        name: String,
        hidden: bool,
        type_name: String,
        required: bool,
        list: bool,
        resolver: Option<String>,
        validator: Option<String>,
    ) -> Property {
        Property {
            name,
            hidden,
            type_name,
            required,
            list,
            resolver,
            validator,
        }
    }
pub fn new ( name : String , hidden : bool , type_name : String , required : bool , list : bool , resolver : Option < String > , validator : Option < String > , ) -> Property { Property { name , hidden , type_name , required , list , resolver , validator , } }
Creates a new Property struct.
Creates a new Property struct .
name
String
hidden
bool
type_name
String
required
bool
list
bool
resolver
Option<String>
validator
Option<String>
name
String
hidden
bool
type_name
String
required
bool
list
bool
resolver
Option<String>
validator
Option<String>
examples
None
use warpgrapher::engine::config::property;
let p = Property::new("name".to_string(), false, "String".to_string(), true, false, None, None);
```
let p = Property :: new ( " name " . to_string () false " String " . to_string () true false None None ) ; ` ` `