pub fn generators_from_json(value: &Value) -> Generators {
  let mut generators = Generators::default();
  match value {
    &Value::Object(ref m) => match m.get("generators") {
      Some(gen_val) => match gen_val {
        &Value::Object(ref m) => generators.load_from_map(m),
        _ => ()
      },
      None => ()
    },
    _ => ()
  }
  generators
}
/// Parses the generators from the Value structure
Parses the generators from the Value structure
Parses the generators from the Value structure
pub fn generators_from_json(value: &Value) -> Generators {
  let mut generators = Generators::default();
  match value {
    &Value::Object(ref m) => match m.get("generators") {
      Some(gen_val) => match gen_val {
        &Value::Object(ref m) => generators.load_from_map(m),
        _ => ()
      },
      None => ()
    },
    _ => ()
  }
  generators
}
pub fn generators_from_json ( value : & Value ) -> Generators { let mut generators = Generators :: default ( ) ; match value { & Value :: Object ( ref m ) => match m . get ( " " ) { Some ( gen_val ) => match gen_val { & Value :: Object ( ref m ) => generators . load_from_map ( m ) , _ => ( ) } , None => ( ) } , _ => ( ) } generators }
Parses the generators from the Value structure
Parses the generators from the Value structure
value
&Value
value
&Value